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.
When a site as a WYSIWYG text editor installed, such as FCKEditor, it is turned on for the 'Meta Tags' textarea. You can set '#wysiwyg' => FALSE on the FAPI form element to tell these WYSIWYG text editors that they should not be disabled for certain fields.
Comments
Comment #1
univate CreditAttribution: univate commentedIndividual modules shouldn't have to worry about this.
As I understand it the WYSIWYG API (which is the recommended way of doing wysiwyg) configures textareas based on input filters and individual modules (like this one) do not have to worry about wysiwyg editor messing up their textareas.
Comment #2
mrfelton CreditAttribution: mrfelton commentedwell, yes they do have a way of disabling fields, either by path or id... but they also listen out for the #wysiwyg attribute, which a lot of modules use if they know that there is no possible way that a wysiwyg editor should be enabled for a certain field (like a settings field)... One less thing to configure/go wrong for end users.