mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Fixed regression where image and link popups don't open
This commit is contained in:
parent
5813a94851
commit
f3137e5b2b
@ -31,12 +31,12 @@
|
||||
ed.addButton('sslink', {title : ed.getLang('tinymce_ssbuttons.insertlink'), cmd : 'sslink', 'class' : 'mce_link'});
|
||||
ed.addButton('ssimage', {title : ed.getLang('tinymce_ssbuttons.insertimage'), cmd : 'ssimage', 'class' : 'mce_image'});
|
||||
|
||||
ed.addCommand("sslink", function(ed) {
|
||||
jQuery('#Form_EditorToolbarLinkForm').entwine('ss').open();
|
||||
ed.addCommand('sslink', function(ed) {
|
||||
jQuery('#' + this.id).entwine('ss').openLinkDialog();
|
||||
});
|
||||
|
||||
ed.addCommand("ssimage", function(ed) {
|
||||
jQuery('#Form_EditorToolbarMediaForm').entwine('ss').open();
|
||||
ed.addCommand('ssimage', function(ed) {
|
||||
jQuery('#' + this.id).entwine('ss').openMediaDialog();
|
||||
});
|
||||
|
||||
// Disable link button when no link is selected
|
||||
|
@ -29,7 +29,7 @@
|
||||
}, {
|
||||
plugin_url : url
|
||||
});
|
||||
})
|
||||
});
|
||||
|
||||
// Register buttons
|
||||
ed.addButton('ssmacron', {
|
||||
|
Loading…
Reference in New Issue
Block a user