tags:

views:

3987

answers:

7

I added couple of Text fields on a content type in Drupal - however, only the in-built "body" fields is WYSIWYG editor enabled. I am using FCKEditor as the WYSIWYG editor (installed under the "wysiwyg" add-on. How can I get WYSIWYG editor enabled on custom added field?

A: 

OK. I figured it out. I went back and edited the field definition: Changed the "Text Processing" value to "Filtered Text" from "Plain Text" so that the user can select input type.

Cynthia
+3  A: 

If you are not wanting to make every single textarea an editor, FCKeditor under Drupal lets you choose exactly which fields will be WYSIWYG editors .. you need to configure (.../admin/settings/fckeditor/default) for "include" mode and list the node-type field IDs. You can even specify a simple vs normal toolbar. Quite flexible

Scott Evernden
A: 

Anyone know how to do this on custom node types in a custom module, which wasn't created using CCK?

jord
A: 

I cant this to work. I've tried all the above. In the fckeditor admin section in drupal, under 'visibility section', set to 'include', added the html id of the textarea of the cck field that i created into all the roles (default and advanced and my own user role 'editor'). FCKEDITOR shows in core text fields such as body of 'pages'. Is something overriding this setting?

A: 

I went round and round with this and finally saw the fckeditor setting in the profile settings (NOT the global one) that reads

Minimum Rows [ 4 ]
FCKeditor will be triggered if the textarea has more rows than entered here. Enter '1' if you do not want to use this feature.

And of course, in my field setup I had rows set to 4, so the darn editor never kicks in! I changed my field rows to 5 and woop! there it is!

Gary
+2  A: 

Click Configure of your CCK field and choose Filtered text (user selects input format) under Text processing. This configuration will show input format selection you need to choose. As long as you configure properly your WYSIWYG module the editor will show.

Rizzblow
A: 

Don't forget to check on the minimum rows setting. This was my problem... I had my field's rows set to 3 and my FCKEditor settings to minimum rows 3. I changed field's rows to 4 and it worked!

It doesn't seem to matter if I've set the field to Plain Text or Filtered Text - it works either way.

plong0