This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
103 Posts
Alain L
5 years ago


I override the form view of an article content type.  I'd like to fill a wysiwyg text field in this code. For example like this:

$fields = $cck->getFields('mainbody');
if( empty( $fields['mywysiwyg']->value))
       $fields['mywysiwyg']->?????( '<p>New Html Text </p>');

Is it possible?   Thank you.

PS: For a textarea field I make like this:

$fields['mytextarea']-->form = str_replace( '</textarea>', "New not html text"."</textarea>", $fields['mytextarea']-->form );

Need some help?

3 replies have been added to this thread, and the topic is marked as solved.
You should subscribe to a club in order to read all posts.