The problem with tinima and lists

I am having a problem using bbcodeplugin and lists. Although the lists are stored as bbcode, as I want, when I reopen and edit the text, tinymce adds extra markup to the lists, so something like

<ul> <li>one</li> </ul> 

becomes

 <ul> <ul><li>one</li></ul> </ul> 

So, each <li> element is wrapped with an extra <ul> , which I would like to prevent.

How can I prevent all list items from changing with tinymce-javascript?


This problem seems to be related to the thing “adding binary BRs when entering code,” which I have now seen several times during my research. because not only ul tags are added by tinima, but also br.

Please, can someone give me some hint?

+7
source share
1 answer

You must add a parameter to init.

apply_source_formatting: false

This will prevent the source from being pre-formatted.

0
source

All Articles