How to disable the 'ckeditor' on Drupal's contact form?

Submitted by Jochus on Thu, 07/10/2010 - 00:57 | Posted in: Drupal


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

Submitted by John (not verified) on Tue, 05/04/2011 - 00:48
 

Nice post.

Don't get the second part. Where exactly do I put:

page@node/*/edit.edit-body

Thx,

John

Submitted by Jochus on Tue, 05/04/2011 - 20:53
 

John,

Browse to this URL: admin/settings/ckeditor/editg

Jochen

Submitted by John (not verified) on Tue, 05/04/2011 - 22:48
 

In reply to by Jochus

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

Submitted by John (not verified) on Tue, 05/04/2011 - 23:00
 

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.

Submitted by John (not verified) on Wed, 06/04/2011 - 18:56
 

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

Submitted by Rahul Seth (not verified) on Mon, 19/09/2011 - 14:08
 

how to submit the form data automatically in drupal

Submitted by Jochus on Sun, 16/10/2011 - 10:32
 

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

Submitted by Rahul seth (not verified) on Mon, 14/11/2011 - 04:34
 

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

Submitted by Jochus on Sat, 21/12/2013 - 20:34
 

In reply to by Rahul seth (not verified)

Hi Rahul,

I'm sorry, I cannot help you on this one.

Kind regards,
Jochen

Submitted by Anonymous (not verified) on Sat, 21/12/2013 - 07:58
 

where is " Site configuration > CKEditor"? i can not find this directory.

Submitted by Jochus on Sat, 21/12/2013 - 20:34
 

In reply to by Anonymous (not verified)

This tutorial is written for Drupal 6, are you using this version as well?

Add new comment

The content of this field is kept private and will not be shown publicly.

Full HTML

  • Lines and paragraphs break automatically.
  • You can caption images (data-caption="Text"), but also videos, blockquotes, and so on.
  • Web page addresses and email addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <cpp>, <css>, <html5>, <java>, <javascript>, <php>, <sql>, <xml>. The supported tag styles are: <foo>, [foo].
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.