Changeset 2743:1110681e6886 for plugins/dcCKEditor/js
- Timestamp:
- 08/29/14 11:11:18 (11 years ago)
- Branch:
- default
- Location:
- plugins/dcCKEditor/js/ckeditor-plugins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/js/ckeditor-plugins/dclink/plugin.js
r2738 r2743 12 12 13 13 editor.ui.addButton('dcLink', { 14 label: 'Link',14 label: dotclear.msg.link_title, 15 15 command: 'dcLinkCommand', 16 16 toolbar: 'insert' 17 17 }); 18 18 19 19 editor.on('doubleclick',function(e) { 20 20 var element = CKEDITOR.plugins.link.getSelectedLink(editor) || e.data.element; 21 21 if (!element.isReadOnly()) { 22 if (element.is('a') 22 if (element.is('a') 23 23 && !element.hasClass('media-link') // link to original media @see js/popup_media.js 24 24 && !element.hasClass('post')) { // link to an entry @see js/popup_posts.js … … 39 39 $.toolbarPopup(popup_url); 40 40 return false; 41 } 41 } 42 42 } 43 43 }); -
plugins/dcCKEditor/js/ckeditor-plugins/entrylink/plugin.js
r2738 r2743 12 12 13 13 editor.ui.addButton('EntryLink', { 14 label: 'Entry Link Selection',14 label: dotclear.msg.post_link_title, 15 15 command: 'entryLinkCommand', 16 16 toolbar: 'insert' 17 17 }); 18 18 19 19 editor.on('doubleclick',function(e) { 20 20 var element = CKEDITOR.plugins.link.getSelectedLink( editor ) || e.data.element; 21 21 if (!element.isReadOnly()) { 22 if (element.is('a') 22 if (element.is('a') 23 23 && !element.hasClass('media-link') 24 24 && element.hasClass('post')) { // link to original media @see js/popup_media.js … … 27 27 $.toolbarPopup('popup_posts.php?popup=1&editor='+editor.name); 28 28 return false; 29 } 29 } 30 30 } 31 31 }); -
plugins/dcCKEditor/js/ckeditor-plugins/media/plugin.js
r2738 r2743 8 8 } 9 9 }); 10 10 11 11 editor.ui.addButton('Media', { 12 label: 'Media Selection',12 label: dotclear.msg.img_select_title, 13 13 command: 'mediaCommand', 14 14 toolbar: 'insert' 15 15 }); 16 16 17 17 editor.on('doubleclick',function(e) { 18 18 var element = CKEDITOR.plugins.link.getSelectedLink(editor) || e.data.element;
Note: See TracChangeset
for help on using the changeset viewer.