简体   繁体   English

TinyMCE:强制所有内容进入项目符号列表?

[英]TinyMCE: Force all content into a bulleted list?

Is it possible to force all content posted in a tinyMCE textbox to be wrapped in a bulleted list?是否可以强制所有在 tinyMCE 文本框中发布的内容都包含在项目符号列表中?

ie All content would be wrapped in a <ul> and each line break in the text box would create a new <li>即所有内容都将被包裹在一个<ul>中,文本框中的每个换行符都会创建一个新的<li>

I know I can add it as an option but is there a way to force all text into a list?我知道我可以将它添加为一个选项,但是有没有办法将所有文本强制放入列表中?

You can set the force_root_block which defaults to "p" or "div".您可以设置默认为“p”或“div”的force_root_block But i do not think this will work.但我不认为这会奏效。 In my tinymce the p's got replaced with ul's, but you would have to insert the li's using an own plugin, because there is no such default functionalitiy in tinymce.在我的 tinymce 中,p 被 ul 替换,但是您必须使用自己的插件插入 li,因为 tinymce 中没有这样的默认功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM