Need field for exceptions.

Comments

dczepierga’s picture

Assigned: keha3912 » Unassigned
Status: Active » Postponed

It isn't possible to do that in CKEditor module in version 7.x-1.x, it would be possible in 7.x-2.x version - now i work on it so DEV version should be asap...

For now u can define new input format and add to this field, then CKEditor not attach there.

Greetings

keha3912’s picture

I'll be the first tester :)

Bensbury’s picture

I need this too.
I don't need ck editor confusing admin users on certain fields when it's simple. But I do need the html options.

Unless I select plain text, it'll default to full-html even if I make a new non-ck editor format type.

So I'd like to be able to exclude fields too.

Thanks.

mefisto75’s picture

Yep, needed feature. For now I just hide it by default.

totap’s picture

I need it too very much.

andrenoronha’s picture

subscribe

sachbearbeiter’s picture

subscribe

Lakeside’s picture

dczepierga,

Version 7.x.1.X-dev is installed.

Have you found the time to add the feature to prevent CKEditor from loading on a specific page?

Rather than shutting out CKEditor from the entire page wouldn't it be more efficient to control which fields in a content type will display the editor? If not, how about toggling on/off if CKEditor is available to a particular content type.

What I'd like to see is control over whether COMMENTS displays the CKEditor. Currently it seems that the same control icons appear regardless if someone is creating a comment or creating an article (or any other content type).

safetypin’s picture

Similar request - I'd like to be able to disable the ckeditor for all summary fields. This is a special field that only appears for fields configured as "Long text with summary". And then only appears when someone clicks the "Edit summary" link above the field.

I remember seeing a CSS (or xpath) selector configuration somewhere in a different version, perhaps 6.x branch?

Rar9’s picture

Version: 7.x-1.2 » 7.x-1.6

+1

I don´t need CKeditor on Comment Boxes.
How to default it to Plain Text.... a solultion like under D6 would be ok for me.

manuel_mra’s picture

Hi:
When you setup Ckeditor (in D6) there is a way where you can make it disable (CKEditor Global Profile). in the Fields to exclude/include: you can set up the pages where you want to exclude the CKEditor.
I hope this help you.

Manuel.

SilviuChingaru’s picture

This was my first thought to fix this issue #1433280: Warning: Cannot modify header information - headers already sent but there is no such option to exclude loading on certain page or all pages except where I rely need CKEditor... so SUBSCRIBE to this feature. I had to disable CKEditor until that bug is fixed...

halmsx’s picture

hi

i disabled ckeditor in the new private message form using hook form alter.

function mymodule_form_alter (&$form, &$form_state, $form_id) {
  if ($form_id == 'privatemsg_new') {
    $form['body']['#type'] = 'textarea';
  }
}

this works for me. this didnt disable other fields. just the ones i wanted.

pritamsarkar’s picture

Simply from admin panel go to the "MANAGE FIELDS" of the required content type, edit the particular field and change the "Text processing" to "Plain text".

Why so serious.. ;)

enzipher’s picture

Although setting the field to "Plain text" does disable the editor it's not the same as "Filtered HTML" or "Full HTML", obviously. So it's not a working solution.

traveller’s picture

Got the same problem, and setting the field per content type is not even possible, as I need to restrict the input for messages send with the Message module (http://drupal.org/project/message).
The old D6 solution for restricting inputs to named input fields would be very handy here.

Anonymous’s picture

Priority: Major » Critical

Hi everyone,

Could anyone tell me how i can hide ckeditor from private message field in drupal 7.

Valera Tumash’s picture

There was a task for Drupal 7 to disable CKeditor for signature settings in user profile page. I was able to solve it with the next code:

function MYMODULE_form_alter (&$form, &$form_state, $form_id) {
  if ($form_id == 'user_profile_form') {
    $form['signature_settings']['signature']['#type'] = 'textarea';
  }
}
Valera Tumash’s picture

Unfortunately, doing this has caused a notice error in dblog:

Notice: Uninitialized string offset: 0 in user_account_form_validate() function (string 1254 in /home/horadric/public_html/modules/user/user.module file).

Valera Tumash’s picture

I have just realized that the method described in #18 doesn't work properly. The edit area now is like a textarea, but when I try to change some data in it - there is only one first letter of the message after saving...

Ronino’s picture

I found that you can use the #wysiwyg property on form fields to turn off CKeditor:

function MODULE_form_alter(&$form, &$form_state, $form_id) {
  $form['field_foo'][LANGUAGE_NONE][0]['#wysiwyg'] = FALSE;
  ...
}

Nevertheless it would be nice if the include/exclude configuration option from the D6 version came back.

pritamsarkar’s picture

Is this issue queue closed ? Or still anyone need to discuss more ?

Summit’s picture

Status: Postponed » Active

Hi,
Set this to active again. I think this is a necessary item for CKEditor to be able to set it per field, right?
Greetings, Martijn

jlea9378’s picture

This feature used to exist. Where did it go???

jlea9378’s picture

Version: 7.x-1.6 » 7.x-1.13
Issue summary: View changes
upperholme’s picture

Any news on this issue? I used to find the ability to turn the editor off or on in D6 invaluable.

elsvandeveire’s picture

I have installed CKeditor. However, a block on my front page is showing some social media logos and with the CK Editor switched on the whole layout changes. How to switch it off in blocks? (so no content types)

Ronino’s picture

You might be interested in the patch I submitted to #2273977: Allow configuration based on fields instead of only text formats which allows configuration based on fields instead of only text formats.

skolesnyk’s picture

I don't see this option. Where's is it? Really, is it considered an after thought as if CKEditor must be present on all pages?

thronedigital’s picture

Hopefully I can be of help skolesnyk

On version 7.x-1.17

Ckeditor by default has an profile advanced option at
http://fisherindustries.nwcdev.com/admin/config/content/ckeditor

It is affecting filtered html

You can disable it by editing the Advanced profile and unchecking it.

Then on the field you don't want to display ckeditor set its default option to filtered text, and then it will no longer show.

Let me know if you have any issues.