Posted By

zachharkey on 04/14/09


Tagged

drupal FCKEditor


Versions (?)

FCKEditor config snippets


 / Published in: JavaScript
 

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

  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  

You need to login to post a comment.