开发者

TinyMCE adding "\n" as well as <p>

开发者 https://www.devze.com 2023-02-01 23:59 出处:网络
I have just added tinyMCE in for a ticketing system I am writing. I am using the advanced theme and config pretty m开发者_JAVA技巧uch directly from the examples.

I have just added tinyMCE in for a ticketing system I am writing. I am using the advanced theme and config pretty m开发者_JAVA技巧uch directly from the examples.

My problem is that when I have multiple break's on the page, tinyMCE seems to be adding "\n" as well as the p tag.

How can I get it to not add the \n in?

Thanks


The p-tags are necessary for the styling of the text and other tasks. So every bit of text needs to be wrapped (in ps or divs). Concering the "\n"s: Can you give an example?

You might try the following setting: apply_source_formatting : true

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号