Dotclear


Ignore:
Timestamp:
05/02/15 13:57:50 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add an user option to display the editor's toolbar on bottom of textarea (is possible). Take into account this option in dcLegacyEditor

File:
1 edited

Legend:

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

    r2856 r3003  
    1515     protected static $p_url = 'index.php?pf=dcLegacyEditor'; 
    1616 
    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     */ 
     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      */ 
    2424     public static function adminPostEditor($editor='',$context='',array $tags=array()) { 
    2525          if (empty($editor) || $editor!='dcLegacyEditor') {return;} 
     
    6161          if (isset($GLOBALS['core']->auth) && $GLOBALS['core']->auth->getOption('enable_wysiwyg')) { 
    6262               $res .= '<script type="text/javascript" src="'.self::$p_url.'/js/jsToolBar/jsToolBar.wysiwyg.js"></script>'; 
    63         } 
     63          } 
    6464 
    6565          $res .= 
     
    132132          } 
    133133 
     134          $res .= "jsToolBar.prototype.toolbar_bottom = ". 
     135               (isset($GLOBALS['core']->auth) && $GLOBALS['core']->auth->getOption('toolbar_bottom') ? 'true' : 'false').";\n"; 
     136 
    134137          $res .= 
    135138          "\n//]]>\n". 
Note: See TracChangeset for help on using the changeset viewer.

Sites map