Is there a problem with having multiple wysiwygs on the one node edit form?
I have body + 2 CCK text fields and the wysiwyg is only showing on the final one (which is a CCK).

Sorry not to offer more details -- project 3 days from launch :(

Comments

joachim’s picture

Hmm, I've removed wysiwyg on the CCKs and it's still not showing on body. Works on other node types though.
If you've any immediate ideas as to what the problem is I'll buy you a beer in Paris :)
If not will try to debug tomorrow.

joachim’s picture

Status: Active » Closed (fixed)

Found the problem... thanks for your support on IRC :)

mkalbere’s picture

What was the prob ?
I have the same issue, Wysiwyg (With Tiny) only show up on the last textarea ...

$form['search_help']['search_help'] = array(
			'#type' => 'textarea',
			'#title' => t('Howto'),
			'#cols' => 100,
			'#rows' => 10,
			'#default_value' => variable_get('search_help',"" ),
			'#wysiwyg'=>true,  //Doesn't change annything ....
		
		);
		$form['search_help']['format'] = filter_form(2, NULL, array('accepted_text_format'));
		
		$form['glossary_help']['glossary_help'] = array(
			'#type' => 'textarea',
			'#title' => t('Glossary Introcution'),
			'#cols' => 100,
			'#rows' => 10,
			'#default_value' => variable_get('glossary_help',"" ),
		);
		$form['glossary_help']['format'] = filter_form(2, NULL, array('accepted_text_format'));

Any idea of what could be wrong ?

mkalbere’s picture

Answering my own question :
In the filter_form, the third parameter, need to be different for each textarea (cf bold)

$form['search_help']['search_help'] = array(
			'#type' => 'textarea',
			'#title' => t('Howto'),
			'#cols' => 100,
			'#rows' => 10,
			'#default_value' => variable_get('search_help',"" ),
			'#wysiwyg'=>true,
		
		);
		$form['search_help']['format'] = filter_form(2, NULL, <b>array('search_help_format')</b>);
		$form['donorbox']['donorbox'] = array(
			'#type' => 'textarea',
			'#title' => t('Donor box'),
			'#cols' => 100,
			'#rows' => 10,
			'#default_value' => variable_get('donorbox',"" ),
			'#wysiwyg'=>true,
		
		);
		$form['donorbox']['format'] = filter_form(2, NULL, <b>array('donorbox_format')</b>);