-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New list plugin doesn't convert subsequent lists with a different type properly (aka resetting numbering, splitting lists) #12738
Comments
There's a chance we're running here into a limitation of the current implementation – that it does not allow having two subsequent lists of the same type. @niegowski or @arkflpc, could you confirm that I'm right? Or perhaps this is indeed a bug (as opposed to a missing feature)? |
You are right. We even implemented a post-fixer to make sure this would not break in RTC: ckeditor5/packages/ckeditor5-list/src/documentlistproperties/documentlistpropertiesediting.js Lines 150 to 151 in 13d98de
I could imagine a case where one user is modifying a style of the list and some other user is at the same time adding a new list item. This probably could be someday resolved by adding |
Just theoretically, how feasible would be that fix if IFW would mark lists with an additional attribute? Like a unique ID or something, so it's possible to distinguish different lists? Would that help? |
It's not the input problem, it's internally stored in the model (in an input-compatible way) and fixed by the post-fixer. |
Very old DUP of this ticket: #3000. |
Scope
EnablementNew plugin that is added by the user. Behaviour
Two <ul>
<li>LOREM</li>
<li>IPSUM</li>
</ul>
<ul>
<li>LOREM</li>
<li>IPSUM</li>
</ul> Outcome: This should not be merged. Two <ul style="list-style-type: square;">
<li>LOREM</li>
<li>IPSUM</li>
</ul>
<ul style="list-style-type: disc;">
<li>LOREM</li>
<li>IPSUM</li>
</ul> Outcome: This should not be merged. ol'sTwo <ol>
<li>LOREM</li>
<li>IPSUM</li>
</ol>
<ol>
<li>LOREM</li>
<li>IPSUM</li>
</ol> Outcome: This should not be merged. Two <ol>
<li>LOREM</li>
<li>IPSUM</li>
</ol>
<ol style="list-style-type:decimal-leading-zero;">
<li>LOREM</li>
<li>IPSUM</li>
</ol> Outcome: This should not be merged. Real life examples |
…rator-plugin Feature (list): Add the `AdjacentListsSupport` plugin to separate lists of the same type. Closes #12738.
📝 Provide detailed reproduction steps (if any)
For context this is a simplified markup produced by MS Word.
editor.setData( `<copiedMarkupHere>` )
.✔️ Expected result
List with two "Decimal list item again" items should be a numbered list.
❌ Actual result
List goes on as alphanum list.
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: