
Well one of the nice Drupal modules we are using is ckeditor.
This module will allow Drupal to replace textarea fields with the CKEditor - a visual HTML editor, sometimes called WYSIWYG editor. This HTML text editor brings many of the powerful WYSIWYG editing functions of known desktop editors like Word to the web. It's very fast and doesn't require any kind of installation on the client computer.
So what is ckeditor?
CKEditor is the next version of FCKeditor. The editor has been rebranded and completely rewritten. It is now much faster (the code has been optimized), loads faster (the number of files has been reduced, so the browser will perform less HTTP requests) and developers friendly.
This editor is really working fine. Installation is very simpel: you just install the module in your sites/all/modules folder and you install the ckeditor implementation of http://ckeditor.com/download.
Ok, the first thing I noticed when enabling the module: EVERY single textarea in the Drupal site was rendered with ckeditor :-/ ... For example: the contact form was changed into a ckeditor. I just want to have ckeditor for changing pages. How do you fix that?
The solution contains 2 important steps:
- disable the ckeditor for all textarea's: go to Site configuration > CKEditor. Edit: CKEditor Global Profile. Choose: Visibility settings and change Use inclusion or exclusion mode: to Include. Now what does this mean? ckeditor will only appear in the pages you describe
- when you go to a textarea, ckeditor will add some help text at the bottom of the textarea. For example: CKEditor: the ID for excluding or including this element is page@node/6/edit.edit-body.. Now, I don't want to add this line to the Include pages list for every single node, so I provided a kind of regex for this (it's not really a regex...). The trick is to change the node number into a wildcard, like this: page@node/*/edit.edit-body
It's a clean solution to decide on which pages a ckeditor should be used :-)!
Comments
Nice post.
Don't get the second part. Where exactly do I put:
page@node/*/edit.edit-body
Thx,
John
John,
Browse to this URL: admin/settings/ckeditor/editg
Jochen
Jochus,
Thanks, do I just add that exact snippet "page@node/*/edit.edit-body" at the end of the "Fields to exclude/include"list or "Force simplified toolbar on the following fields:" list?
Sorry, I'm pullin my hair out over this one.
John
It says this under the text box area:
CKEditor: the ID for excluding or including this element is webform@node/12/webform/components/11.edit-value.
Jochus,
Ur my last hope.
Do I just add that exact snippet "page@node/*/edit.edit-body" at the end of the "Fields to exclude/include"list or "Force simplified toolbar on the following fields:" list?
Thanks,
John
how to submit the form data automatically in drupal
Hi John,
I don't understand your question? Can you clarify the question?
Rahul,
What do you mean with: "automatically submit the form data"?
Jochen
My Question is how can I submit all the form data on a particular time
Actually I making a Quiz Software in which I add clock when the time of the quiz is up all the data of the form is submited automatically in database. I using drupal 6.0.
please help me
Thanking you
Hi Rahul,
I'm sorry, I cannot help you on this one.
Kind regards,
Jochen
where is " Site configuration > CKEditor"? i can not find this directory.
This tutorial is written for Drupal 6, are you using this version as well?
Add new comment