Dotclear

Changeset 3227:302777510b83


Ignore:
Timestamp:
03/18/16 11:32:45 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Blog description is now editable with XHTML editor (set in user pref)

Location:
admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_pref.php

    r3159 r3227  
    312312} 
    313313 
     314$desc_editor = $core->auth->getOption('editor'); 
     315 
    314316dcPage::open(__('Blog settings'), 
    315317     '<script type="text/javascript">'."\n". 
     
    322324     "</script>". 
    323325     dcPage::jsConfirmClose('blog-form'). 
    324      $core->callBehavior('adminPostEditor'). 
     326     $core->callBehavior('adminPostEditor',$desc_editor['xhtml'],'blog_desc',array('#blog_desc'),'xhtml'). 
    325327     dcPage::jsLoad('js/_blog_pref.js'). 
    326328 
  • admin/js/_blog_pref.js

    r3005 r3227  
    3030          $(this).parent().next('.chosen').html($(this).find(':selected').prop('label')); 
    3131     }); 
     32 
     33     // HTML text editor 
     34     if ($.isFunction(jsToolBar)) { 
     35          $('#blog_desc').each(function() { 
     36               var tbWidgetText = new jsToolBar(this); 
     37               tbWidgetText.draw('xhtml'); 
     38          }); 
     39     } 
     40 
    3241}); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map