Active
Project:
Wysiwyg
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2012 at 18:08 UTC
Updated:
1 Jul 2012 at 23:59 UTC
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
Comment #1
twodAre 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.
Comment #2
Ritch commentedHi,
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.
Comment #3
twodYou 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.