Changeset 2751:a96ec5640056 for plugins/dcCKEditor/js
- Timestamp:
- 09/09/14 16:30:31 (11 years ago)
- Branch:
- default
- Location:
- plugins/dcCKEditor/js
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/js/ckeditor-plugins/dclink/plugin.js
r2743 r2751 6 6 exec: function(editor) { 7 7 if (editor.getSelection().getNative().toString().replace(/\s*/,'')!='') { 8 $.toolbarPopup('popup_link.php? editor='+editor.name);8 $.toolbarPopup('popup_link.php?plugin_id=dcCKEditor'); 9 9 } 10 10 } … … 26 26 editor.getSelection().selectElement(element); 27 27 28 var popup_url = 'popup_link.php? editor='+editor.name;28 var popup_url = 'popup_link.php?plugin_id=dcCKEditor'; 29 29 if (element.getAttribute('href')) { 30 30 popup_url += '&href='+element.getAttribute('href'); -
plugins/dcCKEditor/js/ckeditor-plugins/entrylink/plugin.js
r2743 r2751 6 6 exec: function(editor) { 7 7 if (editor.getSelection().getNative().toString().replace(/\s*/,'')!='') { 8 $.toolbarPopup('popup_posts.php?popup=1& editor='+editor.name);8 $.toolbarPopup('popup_posts.php?popup=1&plugin_id=dcCKEditor'); 9 9 } 10 10 } … … 18 18 19 19 editor.on('doubleclick',function(e) { 20 var element = CKEDITOR.plugins.link.getSelectedLink( editor) || e.data.element;20 var element = CKEDITOR.plugins.link.getSelectedLink(editor) || e.data.element; 21 21 if (!element.isReadOnly()) { 22 22 if (element.is('a') … … 25 25 editor.getSelection().selectElement(element); 26 26 27 $.toolbarPopup('popup_posts.php?popup=1& editor='+editor.name);27 $.toolbarPopup('popup_posts.php?popup=1&plugin_id=dcCKEditor'); 28 28 return false; 29 29 } -
plugins/dcCKEditor/js/ckeditor-plugins/media/plugin.js
r2743 r2751 5 5 editor.addCommand('mediaCommand', { 6 6 exec: function(editor) { 7 $.toolbarPopup('media.php?popup=1& editor='+editor.name);7 $.toolbarPopup('media.php?popup=1&plugin_id=dcCKEditor'); 8 8 } 9 9 }); … … 19 19 if (!element.isReadOnly()) { 20 20 if (element.is('img') || (element.is('a') && element.hasClass('media-link'))) { 21 $.toolbarPopup('media.php?popup=1& editor='+editor.name);21 $.toolbarPopup('media.php?popup=1&plugin_id=dcCKEditor'); 22 22 return false; 23 23 } -
plugins/dcCKEditor/js/popup_link.js
r2738 r2751 6 6 $('#link-insert-ok').click(function() { 7 7 var insert_form = $('#link-insert-form').get(0); 8 if (insert_form == undefined) { 9 return; 8 if (insert_form == undefined) { 9 return; 10 10 } 11 11 12 var editor_name = window.opener.$.getEditorName( document.location.search),12 var editor_name = window.opener.$.getEditorName(), 13 13 editor = window.opener.CKEDITOR.instances[editor_name], 14 link = '', 14 link = '', 15 15 selected_text = editor.getSelection().getNative().toString(); 16 16 -
plugins/dcCKEditor/js/popup_media.js
r2738 r2751 3 3 window.close(); 4 4 }); 5 5 6 6 $('#media-insert-ok').click(function() { 7 7 var insert_form = $('#media-insert-form').get(0); 8 if (insert_form === undefined) { 9 return; 8 if (insert_form === undefined) { 9 return; 10 10 } 11 11 12 var editor_name = window.opener.$.getEditorName( document.location.search),12 var editor_name = window.opener.$.getEditorName(), 13 13 editor = window.opener.CKEDITOR.instances[editor_name], 14 14 type = insert_form.elements.type.value, … … 47 47 element = window.opener.CKEDITOR.dom.element.createFromHtml(img); 48 48 } 49 49 50 50 editor.insertElement(element); 51 51 } -
plugins/dcCKEditor/js/popup_posts.js
r2738 r2751 6 6 $('#form-entries tr>td.maximal>a').click(function(e) { 7 7 e.preventDefault(); 8 var editor_name = window.opener.$.getEditorName( document.location.search),8 var editor_name = window.opener.$.getEditorName(), 9 9 editor = window.opener.CKEDITOR.instances[editor_name], 10 10 link = '',
Note: See TracChangeset
for help on using the changeset viewer.