Changeset 2835:1a32b70ad212 for plugins
- Timestamp:
- 12/07/14 10:33:24 (11 years ago)
- Branch:
- default
- Location:
- plugins/dcCKEditor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/_post_config.php
r2828 r2835 24 24 (function($) { 25 25 $.toolbarPopup = function toolbarPopup(url) { 26 var args = Array.prototype.slice.call(arguments); 27 var width = 520, height = 420; 28 if (args[1]!==undefined) { 29 width = args[1].width || width; 30 height = args[1].height || height; 31 } 32 26 33 var popup_params = 'alwaysRaised=yes,dependent=yes,toolbar=yes,'; 27 popup_params += 'height= 420,width=520,menubar=no,resizable=yes,scrollbars=yes,status=no';34 popup_params += 'height='+height+',width='+width+',menubar=no,resizable=yes,scrollbars=yes,status=no'; 28 35 var popup_link = window.open(url,'dc_popup', popup_params); 29 36 }; -
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.