FCKEditor config snippets


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

Replace and append the following settings in modules/fckeditor/fckeditor.config.js. Has to be re applied after each update.


Copy this code and paste it in your HTML
  1. // Replace DrupalBasic (around line 50)
  2.  
  3. FCKConfig.ToolbarSets['DrupalBasic'] = [
  4. ['Source'],
  5. ['FontFormat','-','Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink', 'Image'],
  6. ['CreateDiv','ShowBlocks']
  7. ] ;
  8.  
  9.  
  10. // Append to bottom of page
  11.  
  12. // I prefer to see block elements.
  13. FCKConfig.StartupShowBlocks = true;
  14.  
  15. // Remove the double background image.
  16. FCKConfig.EditorAreaStyles = 'body { background-image: none; background-color: #FFF }';
  17.  
  18. // Make source code view readable.
  19. FCKConfig.FormatSource = true;
  20. FCKConfig.FormatOutput = true;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.