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/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php

    r3021 r3024  
    2121      * @param context  <b>string</b> page context (post,page,comment,event,...) 
    2222      * @param tags     <b>array</b>  array of ids to inject editor 
     23      * @param syntax   <b>string</b> wanted syntax (wiki,markdown,...) 
    2324      */ 
    24      public static function adminPostEditor($editor='',$context='',array $tags=array()) { 
     25     public static function adminPostEditor($editor='',$context='',array $tags=array(),$syntax='') { 
    2526          if (empty($editor) || $editor!='dcLegacyEditor') {return;} 
    2627 
     
    3132               "//<![CDATA[\n". 
    3233               dcPage::jsVar('dotclear.legacy_editor_context', $context). 
     34               dcPage::jsVar('dotclear.legacy_editor_syntax', $syntax). 
    3335               'dotclear.legacy_editor_tags_context = '.sprintf('{%s:["%s"]};'."\n", $context, implode('","', $tags)). 
    3436               "\n//]]>\n". 
Note: See TracChangeset for help on using the changeset viewer.

Sites map