Changeset 3024:b4724a397193 for plugins
- Timestamp:
- 06/30/15 19:01:11 (10 years ago)
- Branch:
- default
- Location:
- plugins
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/inc/dc.ckeditor.behaviors.php
r2962 r3024 22 22 * @param context <b>string</b> page context (post,page,comment,event,...) 23 23 * @param tags <b>array</b> array of ids into inject editor 24 * @param syntax <b>string</b> wanted syntax (xhtml) 24 25 */ 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;} 27 28 28 29 $config_js = self::$config_url; -
plugins/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php
r3021 r3024 21 21 * @param context <b>string</b> page context (post,page,comment,event,...) 22 22 * @param tags <b>array</b> array of ids to inject editor 23 * @param syntax <b>string</b> wanted syntax (wiki,markdown,...) 23 24 */ 24 public static function adminPostEditor($editor='',$context='',array $tags=array() ) {25 public static function adminPostEditor($editor='',$context='',array $tags=array(),$syntax='') { 25 26 if (empty($editor) || $editor!='dcLegacyEditor') {return;} 26 27 … … 31 32 "//<![CDATA[\n". 32 33 dcPage::jsVar('dotclear.legacy_editor_context', $context). 34 dcPage::jsVar('dotclear.legacy_editor_syntax', $syntax). 33 35 'dotclear.legacy_editor_tags_context = '.sprintf('{%s:["%s"]};'."\n", $context, implode('","', $tags)). 34 36 "\n//]]>\n". -
plugins/pages/page.php
r2974 r3024 295 295 if ($p_edit == $c_edit) { 296 296 $admin_post_behavior .= $core->callBehavior('adminPostEditor', 297 $p_edit,'page',array('#post_excerpt','#post_content','#comment_content') );297 $p_edit,'page',array('#post_excerpt','#post_content','#comment_content'),$post_format); 298 298 } else { 299 299 $admin_post_behavior .= $core->callBehavior('adminPostEditor', 300 $p_edit,'page',array('#post_excerpt','#post_content') );300 $p_edit,'page',array('#post_excerpt','#post_content'),$post_format); 301 301 $admin_post_behavior .= $core->callBehavior('adminPostEditor', 302 $c_edit,'comment',array('#comment_content') );302 $c_edit,'comment',array('#comment_content'),'xhtml'); 303 303 } 304 304 } -
plugins/tags/inc/tags.behaviors.php
r3021 r3024 14 14 class tagsBehaviors 15 15 { 16 public static function adminPostEditor($editor='',$context='',array $tags=array() )16 public static function adminPostEditor($editor='',$context='',array $tags=array(),$syntax='') 17 17 { 18 18 if (($editor != 'dcLegacyEditor' && $editor != 'dcCKEditor') || $context != 'post') return;
Note: See TracChangeset
for help on using the changeset viewer.