开发者

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?

i.e. All content would be wrapped in a <ul> and开发者_StackOverflow社区 each line break in the text box would create a new <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". 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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜