Dotclear

Changeset 3024:b4724a397193 for admin


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

Location:
admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • admin/category.php

    r2891 r3024  
    179179     dcPage::jsConfirmClose('category-form'). 
    180180     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'), 
    182182     dcPage::breadcrumb($elements) 
    183183); 
  • admin/comment.php

    r2857 r3024  
    183183     dcPage::jsConfirmClose('comment-form'). 
    184184     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'). 
    186186     # --BEHAVIOR-- adminCommentHeaders 
    187187     $core->callBehavior('adminCommentHeaders'), 
  • admin/index.php

    r2929 r3024  
    177177          if ($post_editor && !empty($post_editor[$post_format])) { 
    178178               // 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); 
    180180          } 
    181181     } 
  • admin/post.php

    r2974 r3024  
    385385    if ($p_edit == $c_edit) { 
    386386        $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); 
    388388    } else { 
    389389        $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); 
    391391        $admin_post_behavior .= $core->callBehavior('adminPostEditor', 
    392             $c_edit,'comment',array('#comment_content')); 
     392            $c_edit,'comment',array('#comment_content'),'xhtml'); 
    393393    } 
    394394} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map