wysiwyg-editor
wysiwyg-editor copied to clipboard
Deactivating lists with editor.lists.format()
Expected behavior.
When the list is active, using editor.lists.format() should deactivate the list. This should work, regardless if the list is indented or not.
Actual behavior.
If the list is indented, the editor.lists.format() function will throw the following error:
Steps to reproduce the problem.
Indent a paragraph, then apply list to it. After that, try to use editor.lists.format() function.
Editor version.
4.0.9
This is still an issue with 4.0.10:
Un-listing a list with a class
attribute on a li
doesn't work.
Simply creating a list from a p
with a class
leads to the critical markup.
Repro:
https://jsfiddle.net/quzjabp5/

Duplicate of #4181