Dotclear


Ignore:
Timestamp:
08/30/16 16:21:38 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Rich-text-editor (xhtml) may be disabled for Blog/Category? description, widget's textareas, …

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/index.php

    r3223 r3330  
    236236  <?php 
    237237          $widget_editor = $core->auth->getOption('editor'); 
    238           echo $core->callBehavior('adminPostEditor',$widget_editor['xhtml'],'widget',array('#sidebarsWidgets textarea'),'xhtml'); 
     238          $rte_flag = true; 
     239          $rte_flags  = @$core->auth->user_prefs->interface->rte_flags; 
     240          if (is_array($rte_flags) && in_array('widgets_text',$rte_flags)) { 
     241               $rte_flag = $rte_flags['widgets_text']; 
     242          } 
     243          if ($rte_flag) { 
     244               echo $core->callBehavior('adminPostEditor',$widget_editor['xhtml'],'widget',array('#sidebarsWidgets textarea'),'xhtml'); 
     245          } 
    239246  ?> 
    240247  <?php echo(dcPage::jsConfirmClose('sidebarsWidgets')); ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map