-
- 74 Posts
Hello to all,
how can i turn off the feature of tinymce inserting empty p-tags (<p> </p>) automatically, when hitting the enter-key. I tried to disable "force_p_newlines : false" in the "tiny_mce.js", but nothing happend.
Has anyone an idea?
Thanks,
captain
-
- 160 Posts
Hola Captain,
The option is: forced_root_block
This option enables you to make sure that any non block elements or text nodes are wrapped in block elements. For example <strong>something</strong> will result in output like: <p><strong>something</strong></p>. This option is set to false by default so set it to the block element you want to use as root elements.
[edit]
Example of usage of the forced_root_block option:
tinyMCE.init({
...
forced_root_block : ’p’
});