Dotclear


Ignore:
Timestamp:
12/07/14 10:33:24 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

CKEditor : sizes of popups for media, links and links to entry can be choosen

File:
1 edited

Legend:

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

    r2751 r2835  
    33          icons: 'entrylink', 
    44          init: function(editor) { 
     5               popup_params = { 'width': 760, 'height': 500}; 
     6 
    57               editor.addCommand('entryLinkCommand', { 
    68                    exec: function(editor) { 
    79                         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); 
    911                         } 
    1012                    } 
     
    2527                              editor.getSelection().selectElement(element); 
    2628 
    27                               $.toolbarPopup('popup_posts.php?popup=1&plugin_id=dcCKEditor'); 
     29                              $.toolbarPopup('popup_posts.php?popup=1&plugin_id=dcCKEditor', popup_params); 
    2830                              return false; 
    2931                         } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map