I have added the following code to the editor:

<li><a href="#" class="xxx"></a></li>

After saving it automatically changed to :

<ul><li><a href="#" class="xxx"></a></li></ul>

Is there a method to avoid adding <ul> tag?

1 Answer 1


Theoretically adding the following code to js/mage/adminhtml/wysiwyg/tiny_mce/setup.js may help:

valid_children : '+body[li]'

if it will do the job you may think about how to do it w/o overriding core JS file.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.