Customize FCKEditor in PHPWCMS


/ Published in: JavaScript
Save to your folder(s)

make changes in fckeditor_config.js.php


Copy this code and paste it in your HTML
  1. // custom FCKconfig
  2. FCKConfig.ForcePasteAsPlainText = true ;
  3. FCKConfig.IgnoreEmptyParagraphValue = true ;
  4.  
  5. FCKConfig.FillEmptyBlocks = false ;
  6.  
  7. FCKConfig.FormatSource = true ;
  8. FCKConfig.FormatOutput = false ;
  9. FCKConfig.FormatIndentator = ' ' ;
  10.  
  11. FCKConfig.EnterMode = 'p' ;
  12.  
  13. // a minimized customized FCKeditor Toolbar for phpwcms
  14. FCKConfig.ToolbarSets["phpwcms_basic"] = [
  15. ['Bold','Italic','Underline','OrderedList','UnorderedList','JustifyLeft','Link','Unlink'],
  16. ['SpecialChar','RemoveFormat','PasteText'],
  17. ['FitWindow','Source']
  18. ] ;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.