Dotclear


Ignore:
Timestamp:
12/17/14 08:04:25 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
2.7
Message:

Add tags into inject ckeditor for adminPostEditor behavior
Addresses #2011

@TODO : need to find a way to add multiple context: for example comment tab on admin/post.php page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php

    r2762 r2854  
    1515     protected static $p_url = 'index.php?pf=dcLegacyEditor'; 
    1616 
    17     // @param context not use but added to have same function prototype 
    18     public static function adminPostEditor($editor='',$context='') { 
     17    /** 
     18     * adminPostEditor add javascript to the DOM to load ckeditor depending on context 
     19     * 
     20     * @param editor   <b>string</b> wanted editor 
     21     * @param context  <b>string</b> page context (post,page,comment,event,...) 
     22     * @param tags     <b>array</b>  array of ids to inject editor 
     23     */ 
     24    public static function adminPostEditor($editor='',$context='',array $tags=array()) { 
    1925          if (empty($editor) || $editor!='dcLegacyEditor') {return;} 
     26 
     27        // context and tags are not used for dcLegacyEditor 
    2028 
    2129          return 
Note: See TracChangeset for help on using the changeset viewer.

Sites map