简体   繁体   中英

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?

ie All content would be wrapped in a <ul> and 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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