tinymce remove text spaces and line breaks

前端 未结 2 1031
囚心锁ツ
囚心锁ツ 2020-12-07 04:38

I have initialised tinyMCE like so:

        $(\'#description\').tinymce({
        // Location of TinyMCE script
        script_url : \'tinymce/jscripts/tiny_         


        
2条回答
  •  北海茫月
    2020-12-07 05:22

    In case anyone comes across this in the future, we were having issues with linebreaks being stripped and tried just about every suggestion we could find, with no luck.

    I came across this solution here: http://community.tinymce.com/forum/viewtopic.php?id=5636, and it did the trick perfectly.

    Add the following two lines two the tinyMCE.init() function, by default they seem to be set to false.

    force_p_newlines : true,
    force_br_newlines : true
    

提交回复
热议问题