List plugin will merge lists that are not the same #8829
Labels
domain:dx
This issue reports a developer experience problem or possible improvement.
domain:v4-compatibility
This issue reports a CKEditor 4 feature/option that's missing in CKEditor 5.
package:list
resolution:resolved
This issue was already resolved (e.g. by another ticket).
squad:core
Issue to be handled by the Core team.
support:2
An issue reported by a commercially licensed client.
type:bug
This issue reports a buggy (incorrect) behavior.
📝 Provide detailed reproduction steps (if any)
Currently list plugin's converters (during downcasting) will consider lists the same as long as they have: same tag name and classes.
See:
ckeditor5/packages/ckeditor5-list/src/utils.js
Lines 175 to 183 in caca54b
And combine both lists.
Lists could be as well differentiated by different attributes. For instance, per spec, ordered list can contain
ol
type (values likea
,I
or1
denote numbering type, though it can be done by CSS too). With this logic two different lists will be merged.Also developer might use custom
data-
attribute to semantically differentiate some lists type.For instance I saw one CKEditor 5 implementation where there were 3 list types (numbered, bulleted and third). Third type was merged with bulleted as it was downcasted to
ol[type]
and it was considered to be same as plainol
which caused bug.📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: