mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Decoupling dialog logic from tinymce_ssbuttons plugin to allow for lazy loaded dialogs
This commit is contained in:
parent
f26d0bc158
commit
9b79827972
@ -32,11 +32,11 @@
|
|||||||
ed.addButton('ssimage', {title : ed.getLang('tinymce_ssbuttons.insertimage'), cmd : 'ssimage', 'class' : 'mce_image'});
|
ed.addButton('ssimage', {title : ed.getLang('tinymce_ssbuttons.insertimage'), cmd : 'ssimage', 'class' : 'mce_image'});
|
||||||
|
|
||||||
ed.addCommand("sslink", function(ed) {
|
ed.addCommand("sslink", function(ed) {
|
||||||
jQuery('#Form_EditorToolbarLinkForm').entwine('ss').open();
|
jQuery('#' + this.id).entwine('ss').openLinkDialog();
|
||||||
});
|
});
|
||||||
|
|
||||||
ed.addCommand("ssimage", function(ed) {
|
ed.addCommand("ssimage", function(ed) {
|
||||||
jQuery('#Form_EditorToolbarMediaForm').entwine('ss').open();
|
jQuery('#' + this.id).entwine('ss').openMediaDialog();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Disable link button when no link is selected
|
// Disable link button when no link is selected
|
||||||
|
Loading…
Reference in New Issue
Block a user