How can I remove p tags that are auto added within tinymce

前端 未结 11 1913
挽巷
挽巷 2020-12-06 04:46

I am using tinymce 4.0.1 and it automatically adds p tags when you either start typing or hit enter. How can I dynamically remove these p tags and then reinsert the content

11条回答
  •  醉酒成梦
    2020-12-06 05:02

    You need to add the following line to your init statement.

    forced_root_block : ""
    

提交回复
热议问题