Hey,

i am trying to replace my current version of TinyMCE with the new WYSIWYG module from: http://drupal.org/project/wysiwyg.

i works fine except that it is being applied to every textarea within my form, and that is not what i need. I used to use the TinyMCE theme function to disable/enable it but this module does not have anything like that.

any suggestions???

Comments

sun’s picture

Please have a look at the queue http://drupal.org/project/issues/wysiwyg and see if your particular desire is already treated elsewhere first. If it is, please close this issue and follow-up "elsewhere".

If not, please elaborate which textareas you want to disable and which not.

Undocumented, but true for now is that you can use hook_form_alter() to set the FAPI property #wysiwyg => FALSE to prevent a Wysiwyg Editor for a certain field. The property defaults to TRUE.

sun’s picture

Status: Active » Postponed (maintainer needs more info)

Also, please report back.

zmove’s picture

Hi,

Just a quick idea, but it would be good to have the hook_form_alter already in wysiwyg module and beeing able to define for which field you wan't to disable the editor (a little like the node setting).

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Well, hook_form_alter() can be implemented by any other module to set or reset the #wysiwyg property.

For the Wysiwyg Editor module itself, there is no gain in implementing the hook, because this module reacts on the property only.

It seems to me that this issue is about achieving or implementing "something" with no clear intention, while there are plenty of other, concrete feature requests for the very same goal already in the queue. Because of that, I'm marking this issue duplicate, without pointing to all the other existing issues.

emTque’s picture

Status: Closed (duplicate) » Closed (fixed)