Changeset 2835:1a32b70ad212 for plugins/dcCKEditor/js
- Timestamp:
- 12/07/14 10:33:24 (11 years ago)
- Branch:
- default
- Location:
- plugins/dcCKEditor/js/ckeditor-plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/js/ckeditor-plugins/entrylink/plugin.js
r2751 r2835 3 3 icons: 'entrylink', 4 4 init: function(editor) { 5 popup_params = { 'width': 760, 'height': 500}; 6 5 7 editor.addCommand('entryLinkCommand', { 6 8 exec: function(editor) { 7 9 if (editor.getSelection().getNative().toString().replace(/\s*/,'')!='') { 8 $.toolbarPopup('popup_posts.php?popup=1&plugin_id=dcCKEditor' );10 $.toolbarPopup('popup_posts.php?popup=1&plugin_id=dcCKEditor', popup_params); 9 11 } 10 12 } … … 25 27 editor.getSelection().selectElement(element); 26 28 27 $.toolbarPopup('popup_posts.php?popup=1&plugin_id=dcCKEditor' );29 $.toolbarPopup('popup_posts.php?popup=1&plugin_id=dcCKEditor', popup_params); 28 30 return false; 29 31 } -
plugins/dcCKEditor/js/ckeditor-plugins/media/plugin.js
r2751 r2835 3 3 icons: 'media', 4 4 init: function(editor) { 5 popup_params = { 'width': 760, 'height': 500}; 6 5 7 editor.addCommand('mediaCommand', { 6 8 exec: function(editor) { 7 $.toolbarPopup('media.php?popup=1&plugin_id=dcCKEditor' );9 $.toolbarPopup('media.php?popup=1&plugin_id=dcCKEditor', popup_params); 8 10 } 9 11 }); … … 19 21 if (!element.isReadOnly()) { 20 22 if (element.is('img') || (element.is('a') && element.hasClass('media-link'))) { 21 $.toolbarPopup('media.php?popup=1&plugin_id=dcCKEditor' );23 $.toolbarPopup('media.php?popup=1&plugin_id=dcCKEditor', popup_params); 22 24 return false; 23 25 } … … 27 29 }); 28 30 })(); 29
Note: See TracChangeset
for help on using the changeset viewer.