Hallo,
tiny mce editor puts <p> tags automaticly in my html source code.
I want to stop it in the _config.php like this:
HtmlEditorConfig::get('cms')->setOptions(array('apply_source_formatting'=>'false'));
HtmlEditorConfig::get('cms')->setOptions(array('forced_root_block'=>'p'));
or in the page.php:
public function getCMSFields() {
$fields = parent::getCMSFields();
HtmlEditorConfig::get('cms')->setOption('verify_html', 'false');
HtmlEditorConfig::get('cms')->setOption('apply_source_formatting,'false');
HtmlEditorConfig::get('cms')->setOption('forced_root_block','p');
return $fields;
}
but nothing works for me.
Any helpful suggestions?
Thanks Michi