Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello!
On a form, I have several textarea fields, but one of these does not accept any HTML code (not a bug, just a wish).
How can I disable the HTML editor on a textarea field, without using the interface configuration CKEditor ?
( I would have a field of type textfield, but multiline in plain text)
Comments
Comment #1
mephir CreditAttribution: mephir commentedIn profile you have got exclude/include settings. Below the editor you have got textarea id which should be copied into that settings.
http://drupal.ckeditor.com/setting-up-profiles?page=0,2
Comment #2
lphm CreditAttribution: lphm commentedI have already seen this functionality, but I would create programmatically this exclude, without editing directly settings by admin interface.
Comment #3
lphm CreditAttribution: lphm commentedComment #4
mephir CreditAttribution: mephir commentedIf writing own module you can add to that textarea
#wysiwyg
property with false(bool) value, after that ckeditor ignore that textarea.Comment #6
lphm CreditAttribution: lphm commented#wysiwyg works !
Thank you !