BUGFIX Fixed regression where image and link popups don't open

This commit is contained in:
Sean Harvey 2012-04-17 14:42:57 +12:00
parent 5813a94851
commit f3137e5b2b
2 changed files with 6 additions and 6 deletions

View File

@ -31,12 +31,12 @@
ed.addButton('sslink', {title : ed.getLang('tinymce_ssbuttons.insertlink'), cmd : 'sslink', 'class' : 'mce_link'}); 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.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

View File

@ -29,7 +29,7 @@
}, { }, {
plugin_url : url plugin_url : url
}); });
}) });
// Register buttons // Register buttons
ed.addButton('ssmacron', { ed.addButton('ssmacron', {