Installation / Configuration
-------------------
Note: this instruction assumes that you install CKEditor in
sites/all/modules directory (recommended).
contain a ckeditor directory.
2. Download CKEditor from http://ckeditor.com/download. Unzip the
contents of the ckeditor directory in the
sites/all/modules/ckeditor/ckeditor directory.
Note: you can skip uploading "_samples" and "_source" folders.
3. Enable the module as usual from Drupal's admin pages.
4. Grant permissions for use of CKEditor in
"Administer > User Management > Permissions"
Note: to enable the file browser, read also the
"How to enable the file browser" section.
5. Under "Administer > Site configuration > CKEditor", adjust
the ckeditor profiles. In each profile you can choose which textareas
will be replaced by CKEditor, select default toolbar and configure
some more advanced settings.
6. For the Rich Text Editing to work you also need to configure your filters
for the users that may access Rich Text Editing.
Either grant those users Full HTML access or use the following tags:
<a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr>
<br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong>
<del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code>
<cite> <embed> <object> <param> <strike> <caption> <tbody>
Fore easier usage (copying), all tags are below in one line:
<a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <param> <strike> <caption> <tbody>
If you're going to use CKEditor with Filtered HTML input format,
please read also "Setting up filters" section.
7. To have a better control over line breaks, you may disable Line break converter
in the chosen filter (recommended).
8. Modify the ckeditor.config.js file to custom your needs (optional).
Configuration options are available here:
http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html
Developers documentation for CKEditor:
http://docs.cksource.com/CKEditor_3.x/Developers_Guide
In ckeditor.config.js you may define your own toolbars with selected buttons.
WARNING: clear browser's cache after you modify any of the javascript files.
If you don't do this, you may notice that browser is ignoring all your changes.
评论