Dotclear


Ignore:
Timestamp:
12/21/14 22:07:02 (9 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
2.7
Message:

Add external media for CKEditor
Allow link around external media

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcCKEditor/js/ckeditor-plugins/dclink/plugin.js

    r2751 r2868  
    55               editor.addCommand('dcLinkCommand', { 
    66                    exec: function(editor) { 
    7                          if (editor.getSelection().getNative().toString().replace(/\s*/,'')!='') { 
     7                         if (editor.getSelection().getSelectedElement()!=null 
     8                             || editor.getSelection().getNative().toString().replace(/\s*/,'')!='') { 
    89                              $.toolbarPopup('popup_link.php?plugin_id=dcCKEditor'); 
    910                         } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map