tinyMCE remove <P> and use <br> to break, also can remove &nbps tag.
很不喜歡tinymce內建的語法格式,尤其是為自動加上<P>或是<span>,
解決辦法如下!
tinyMCE.init({
entity_encoding: ‘raw’, //解決&nbps的;this for remove &nbps tag.
force_br_newlines : true,//啟用BR換行;use <br> to break;
force_p_newlines : false, //停用P換行, disable <P> to break;
forced_root_block : false, //移除開頭的<P>和<span>; romove the frist <P> and disable <span> tag
})
這樣就OK!
OpenAi 官方的Strea…