Dotclear


Ignore:
Timestamp:
09/09/14 16:30:31 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Each editor (ckeditor, legacy ones) loads its own context when it is active.
Add plugin_id parameter to transmit that context
Remove call of ckeditorExtraPlugins behavior until a good solution is found.
Closes #1983

File:
1 edited

Legend:

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

    r2743 r2751  
    66                    exec: function(editor) { 
    77                         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'); 
    99                         } 
    1010                    } 
     
    1818 
    1919               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; 
    2121                    if (!element.isReadOnly()) { 
    2222                         if (element.is('a') 
     
    2525                              editor.getSelection().selectElement(element); 
    2626 
    27                               $.toolbarPopup('popup_posts.php?popup=1&editor='+editor.name); 
     27                              $.toolbarPopup('popup_posts.php?popup=1&plugin_id=dcCKEditor'); 
    2828                              return false; 
    2929                         } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map