Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Decoupling dialog logic from tinymce_ssbuttons plugin to allow …

…for lazy loaded dialogs
  • Loading branch information...
commit 9b79827972c206951b7ba5bca5ceaeab403b58a8 1 parent f26d0bc
@chillu chillu authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 javascript/tinymce_ssbuttons/editor_plugin_src.js
View
4 javascript/tinymce_ssbuttons/editor_plugin_src.js
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.