Changeset 3024:b4724a397193
- Timestamp:
- 06/30/15 19:01:11 (10 years ago)
- Branch:
- default
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/category.php
r2891 r3024 179 179 dcPage::jsConfirmClose('category-form'). 180 180 dcPage::jsLoad('js/_category.js'). 181 $core->callBehavior('adminPostEditor',$category_editor['xhtml'],'category',array('#cat_desc') ),181 $core->callBehavior('adminPostEditor',$category_editor['xhtml'],'category',array('#cat_desc'),'xhtml'), 182 182 dcPage::breadcrumb($elements) 183 183 ); -
admin/comment.php
r2857 r3024 183 183 dcPage::jsConfirmClose('comment-form'). 184 184 dcPage::jsLoad('js/_comment.js'). 185 $core->callBehavior('adminPostEditor',$comment_editor['xhtml'],'comment',array('#comment_content') ).185 $core->callBehavior('adminPostEditor',$comment_editor['xhtml'],'comment',array('#comment_content'),'xhtml'). 186 186 # --BEHAVIOR-- adminCommentHeaders 187 187 $core->callBehavior('adminCommentHeaders'), -
admin/index.php
r2929 r3024 177 177 if ($post_editor && !empty($post_editor[$post_format])) { 178 178 // context is not post because of tags not available 179 $admin_post_behavior = $core->callBehavior('adminPostEditor', $post_editor[$post_format], 'quickentry', array('#post_content') );179 $admin_post_behavior = $core->callBehavior('adminPostEditor', $post_editor[$post_format], 'quickentry', array('#post_content'),$post_format); 180 180 } 181 181 } -
admin/post.php
r2974 r3024 385 385 if ($p_edit == $c_edit) { 386 386 $admin_post_behavior .= $core->callBehavior('adminPostEditor', 387 $p_edit,'post',array('#post_excerpt','#post_content','#comment_content') );387 $p_edit,'post',array('#post_excerpt','#post_content','#comment_content'),$post_format); 388 388 } else { 389 389 $admin_post_behavior .= $core->callBehavior('adminPostEditor', 390 $p_edit,'post',array('#post_excerpt','#post_content') );390 $p_edit,'post',array('#post_excerpt','#post_content'),$post_format); 391 391 $admin_post_behavior .= $core->callBehavior('adminPostEditor', 392 $c_edit,'comment',array('#comment_content') );392 $c_edit,'comment',array('#comment_content'),'xhtml'); 393 393 } 394 394 } -
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.