127 Posts
Cappu
3 years ago
Topic

Hi,

I do use Before Render to overwrite some field values. Works fine for all field types besides tinyMCE fields. 

Anybody out there who could give me a hint on how to change tinyMCE editor fields?

Thanks and kind regards

Get a VIP membership
127 Posts
Cappu
3 years ago
0
Level 1

Could solve it myself. Just use this:

$sometext = '...';

$fields['myformfield']->form = str_replace('</textarea>', $sometext.'</textarea>', $fields['myformfield']->form);

Get a VIP membership