wysiwyg-editor icon indicating copy to clipboard operation
wysiwyg-editor copied to clipboard

Deactivating lists with editor.lists.format()

Open ledicana opened this issue 3 years ago • 2 comments

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:

froala-list-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

ledicana avatar Feb 04 '22 07:02 ledicana

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/

image

dcsaszar avatar Apr 08 '22 15:04 dcsaszar

Duplicate of #4181

dcsaszar avatar Apr 08 '22 15:04 dcsaszar