Dotclear


Ignore:
Timestamp:
03/15/16 12:29:55 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

textarea attributes of widgets (text and others) are now editable with XHTML editor (set in user pref), closes #1951

Location:
plugins/widgets
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/class.widgets.php

    r3058 r3223  
    320320                    $res .= 
    321321                    '<p><label for="'.$wfid.'">'.$s['title'].'</label> '. 
    322                     form::textarea(array($iname,$wfid),30,5,html::escapeHTML($s['value']),'maximal'). 
     322                    form::textarea(array($iname,$wfid),30,8,html::escapeHTML($s['value']),'maximal'). 
    323323                    '</p>'; 
    324324                    break; 
  • plugins/widgets/index.php

    r3021 r3223  
    234234  //]]> 
    235235  </script> 
    236   <?php echo $core->callBehavior('adminPostEditor');?> 
     236  <?php 
     237          $widget_editor = $core->auth->getOption('editor'); 
     238          echo $core->callBehavior('adminPostEditor',$widget_editor['xhtml'],'widget',array('#sidebarsWidgets textarea'),'xhtml'); 
     239  ?> 
    237240  <?php echo(dcPage::jsConfirmClose('sidebarsWidgets')); ?> 
    238241</head> 
  • plugins/widgets/widgets.js

    r2563 r3223  
    126126          reorder($this.parents('ul.connected')); 
    127127     }); 
     128 
     129     // HTML text editor 
     130     if ($.isFunction(jsToolBar)) { 
     131          $('#sidebarsWidgets textarea').each(function() { 
     132               var tbWidgetText = new jsToolBar(this); 
     133               tbWidgetText.draw('xhtml'); 
     134          }); 
     135     } 
     136 
    128137}); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map