Skip to content

Commit

Permalink
MINOR Decoupling dialog logic from tinymce_ssbuttons plugin to allow …
Browse files Browse the repository at this point in the history
…for lazy loaded dialogs
  • Loading branch information
chillu committed Apr 12, 2012
1 parent f26d0bc commit 9b79827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/tinymce_ssbuttons/editor_plugin_src.js
Expand Up @@ -32,11 +32,11 @@
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();
jQuery('#' + this.id).entwine('ss').openLinkDialog();
});

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
Expand Down

0 comments on commit 9b79827

Please sign in to comment.