I need assistance with using tinyMCE as an inline editor. I want it so that when a user is in edit mode and presses enter, <br />
is inserted instead of <p>
. I have gone through the manual and FAQ but have not been able to achieve this successfully.
tinyMCE.init({
'height' : '100%',
'widht':'100%',
'content_css' : styles + ',/sdtc-new/nc/interface/common/css/mce-editor.css',
'mode' : "specific_textareas",
'editor_selector' : prefix + o.id,
'theme':'advanced',
theme_advanced_buttons1: o.buttons.join(','),
theme_advanced_buttons2 : "",
**theme_advanced_buttons3 : "",
force_br_newlines : true,
force_p_newlines : false,
forced_root_block : '' // Needed for 3.x**
});
It's not working as expected. Sometimes it works when I delete all content in the editing area and type new text, but I need it to work consistently. Any help would be appreciated. The version of tinyMCE I am using is 3.4.4