Trigger WYSIWYG editor in Drupal Form API


/ Published in: PHP
Save to your folder(s)

The trick is having a "format" key for the textarea and using filter_form().

Use two elements with the same parent; the textarea element and an element with the "format" key. (important!).

Example below.

URL: http://api.drupal.org/api/function/filter_form/6

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.