Skip to content
This repository
Browse code

MINOR Decoupling dialog logic from tinymce_ssbuttons plugin to allow …

…for lazy loaded dialogs
  • Loading branch information...
commit 9b79827972c206951b7ba5bca5ceaeab403b58a8 1 parent f26d0bc
Ingo Schommer authored April 12, 2012
4  javascript/tinymce_ssbuttons/editor_plugin_src.js
@@ -32,11 +32,11 @@
32 32
 			ed.addButton('ssimage', {title : ed.getLang('tinymce_ssbuttons.insertimage'), cmd : 'ssimage', 'class' : 'mce_image'}); 
33 33
 
34 34
 			ed.addCommand("sslink", function(ed) {
35  
-				jQuery('#Form_EditorToolbarLinkForm').entwine('ss').open();
  35
+				jQuery('#' + this.id).entwine('ss').openLinkDialog();
36 36
 			});
37 37
 
38 38
 			ed.addCommand("ssimage", function(ed) {
39  
-				jQuery('#Form_EditorToolbarMediaForm').entwine('ss').open();
  39
+				jQuery('#' + this.id).entwine('ss').openMediaDialog();
40 40
 			});
41 41
 			
42 42
 			// Disable link button when no link is selected

0 notes on commit 9b79827

Please sign in to comment.
Something went wrong with that request. Please try again.