List view with a class name is always split into multiple lists #8734
Labels
domain:v4-compatibility
This issue reports a CKEditor 4 feature/option that's missing in CKEditor 5.
package:list
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)
I was adding support for
ol[class]
attribute, so I added alistItem[listClass]
attribute (similarly as we keeplistType
)in the model.
However, when downcasting each list item gets placed in a separate list, while all should be placed in a single list wrapper. Note the numbering being restart:
Interestingly if I change view attribute name from
class
to something else, e.g.data-class
it works as expected and no multiple lists are created.I created a demo:
ul[class]
and gets split into separate lists.ul[data-class]
attribute (just different attribute name) - and it works fine.✔️ Expected result
List should not be split.
❌ Actual result
List is being split.
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: