Dotclear


Ignore:
Timestamp:
12/17/14 11:40:49 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
2.7
Message:

Load wanted editor for each context
Closes #2011, Closes #2014

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/page.php

    r2854 r2856  
    285285 
    286286$admin_post_behavior = ''; 
    287 if ($post_editor && !empty($post_editor[$post_format])) { 
    288      $admin_post_behavior = $core->callBehavior('adminPostEditor', $post_editor[$post_format], 'page', array('#post_excerpt','#post_content')); 
     287if ($post_editor) { 
     288     $p_edit = $c_edit = ''; 
     289     if (!empty($post_editor[$post_format])) { 
     290          $p_edit = $post_editor[$post_format]; 
     291     } 
     292     if (!empty($post_editor['xhtml'])) { 
     293          $c_edit = $post_editor['xhtml']; 
     294     } 
     295     if ($p_edit == $c_edit) { 
     296          $admin_post_behavior .= $core->callBehavior('adminPostEditor', 
     297               $p_edit,'page',array('#post_excerpt','#post_content','#comment_content')); 
     298     } else { 
     299          $admin_post_behavior .= $core->callBehavior('adminPostEditor', 
     300               $p_edit,'page',array('#post_excerpt','#post_content')); 
     301          $admin_post_behavior .= $core->callBehavior('adminPostEditor', 
     302               $c_edit,'comment',array('#comment_content')); 
     303     } 
    289304} 
    290305 
Note: See TracChangeset for help on using the changeset viewer.

Sites map