Dotclear


Ignore:
Timestamp:
06/30/15 19:01:11 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add syntax arg to adminPostEditor behaviour (may be 'wiki', 'xhtml', 'markdown', …), fixes #2042

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcCKEditor/inc/dc.ckeditor.behaviors.php

    r2962 r3024  
    2222     * @param context  <b>string</b> page context (post,page,comment,event,...) 
    2323     * @param tags     <b>array</b>  array of ids into inject editor 
     24     * @param syntax   <b>string</b> wanted syntax (xhtml) 
    2425     */ 
    25     public static function adminPostEditor($editor='',$context='',array $tags=array()) { 
    26         if (empty($editor) || $editor!='dcCKEditor') { return;} 
     26    public static function adminPostEditor($editor='',$context='',array $tags=array(),$syntax='xhtml') { 
     27        if (empty($editor) || $editor != 'dcCKEditor' || $syntax != 'xhtml') { return;} 
    2728 
    2829        $config_js = self::$config_url; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map