CK EditorPublished by sstoft on Sun, 03/20/2011 - 22:34
From Dan: file upload capabilities, and thought that I would pay $59 for the CKFinder file browser. But I had a lot of trouble getting it to work, and in searching for solutions to my difficulties, came across others with the same difficulties who solved them by using "KCFinder"
Double Quotes Bug: They turn into "\" in CKeditor. This is caused by PHP. See Drupal Installing
- Do not install the Drupal's WysiWig module, only the Drupal ckEditor Module.
- Install the ckEditor drupal modual using the drupal modual installer (http://drupal.org/project/ckeditor), and read the README file.
- Put the files from http://ckeditor.com/download in all /sites/all/libraries/ckeditor/
Modify Toolbars for Filtered and Full HTML: ( http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Toolbar )
- Configuration > CKEditor > edit > Editor Appearance
- Add: ['DrupalPageBreak'] (the Drupal Teaser Break is already there.)
- Add: ['mediaembed','IMCE'] (since the Plugins / IMCE check box does not seem to work.)
- Add: Styles: ['Styles','Format','Font','FontSize'],
- Configuration > CKEditor > edit > Advanced Options
- Spell checker is turned off (good--it times out in 30 days) (this might be due to the ABC SCAYT button in the toolbar.
- Now at this " CKEDITOR.config.disableNativeSpellChecker = false; " to the bottom of modules/ckeditor/ckeditor.config.js
- Some JS configuration and info about ckeditor.config.js is here.
- Add 'DrupalPageBreak' and 'DrupalBreak' if missing. Configure > CKEditor > Appearance > edit. But DrupalPageBreak Need Paging module, which is not in 7 yet (maybe silly).
- Uncomment 2 pair of lines at bottom of ckeditor/ckeditor.config.js for mediaembed and IMCE. Then Configure > CKEditor > Appearance > edit ['mediaembed','IMCE']
- This file defines custom styles used with drop-down styles button while editing.
- This file defines classes and styles that will be used in the CKEdidtor window to make it more wysiwig.
- E.g. define CK style "DateLine" to apply class "dateline." Then define class .dateline in (1) themes/zframe/style.css and in (2) ckeditor.config.js
- #1 styles the date for drupal users and #2 styles it the same in the CK editor window.
Alternative: instead of modules/ckeditor/ckeditor.config.js, use libraries/ckeditor/contents.css
- I used this instead because I can cut and paste into it without any modification.
- Paragraphs fully justified
- Titles not indented
- Defining your own styles: http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Styles This tells how to configure ckEditor, but not specifically on Drupal. It seems that sites/all/libraries/ckeditor/config.js is the place to tell it where the style defs will be.
- More drupal setup info http://drupal.ckeditor.com/setting-up-profiles?page=0,0