Hi,
I have created some custom fields for menu-item, some textarea, but i can use Wysiwyg on it,

Can you help me,

Thanks

Comments

twod’s picture

Are you using input formats for the text field and using check_markup() to render the contents of the field?
Wysiwyg needs to know which input format is selected to know which editor profile to attach to the textarea.

Ritch’s picture

Hi,

thanks for your answer,

I use form_alter to put textarea in menu_edit_item.

It's like to put Wysiwyg Editor on menu item "Description" field, it's a textarea as well.

I don't see how to ...

Thanks for your suggestions.

twod’s picture

You need to add in the format selector generated by filter_form() right below the textarea.
http://drupal.org/node/358316 shows how to do this in Drupal 6.

Note that it is pointless to add a format selector to make Wysiwyg attach an editor to any field unless you also put the contents stored in that field [along with the format the user selected] through check_markup() when rendering in the theme layer.