-
-
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
Todolist lost checked property when reload or set to Source Editing #15602
Comments
Simplest reproduction (with GHS enabled): <ul class="todo-list">
<li>
<label class="todo-list__label todo-list__label_without-description"><input type="checkbox" checked="checked" disabled="disabled"></label>
<p class="foo">
foobar
</p>
</li>
</ul> |
Also reproducible when changing the alignment on an item in a todo list. Steps to repro:
It seems that the |
Any update? Our clients report this issue again, I think it's an very important function. |
@niegowski @Witoso @mabryl |
As I see it doesn't work with
So conversion treats todo list with This method override ckeditor5/packages/ckeditor5-engine/src/conversion/upcastdispatcher.ts Lines 351 to 379 in 28d0389
Inside First element: Second element: Third element: Meanwhile todo list item with Here is a method which remove empty elements (so only second element with text data from the array is left but it doesn't have ckeditor5/packages/ckeditor5-engine/src/conversion/upcastdispatcher.ts Lines 500 to 516 in 28d0389
|
Here is example solution: #16785 |
Fix (list): A to-do list should preserve the state of the checked items on the data load. Closes #15602.
📝 Provide detailed reproduction steps (if any)
When I add todolist to a table cell, I checked the checkbox, and saved the data to server, when I reload the data, the checkbox's checked status is lost.
Before:
Reload:
Below is my source code, you can copy the code to source editing, the checked="checked" status will be lost
✔️ Expected result
Checked status can reload correctly
❌ Actual result
Checked status is lost.
❓ Possible solution
📃 Other details
"@ckeditor/ckeditor5-alignment": "^40.0.0",
"@ckeditor/ckeditor5-autoformat": "^40.0.0",
"@ckeditor/ckeditor5-basic-styles": "^40.0.0",
"@ckeditor/ckeditor5-block-quote": "^40.0.0",
"@ckeditor/ckeditor5-cloud-services": "^40.0.0",
"@ckeditor/ckeditor5-dev-translations": "^32.1.2",
"@ckeditor/ckeditor5-dev-utils": "^32.1.2",
"@ckeditor/ckeditor5-editor-classic": "^40.0.0",
"@ckeditor/ckeditor5-editor-inline": "^40.0.0",
"@ckeditor/ckeditor5-essentials": "^40.0.0",
"@ckeditor/ckeditor5-font": "^40.0.0",
"@ckeditor/ckeditor5-heading": "^40.0.0",
"@ckeditor/ckeditor5-horizontal-line": "^40.0.0",
"@ckeditor/ckeditor5-html-support": "^40.0.0",
"@ckeditor/ckeditor5-image": "^40.0.0",
"@ckeditor/ckeditor5-indent": "^40.0.0",
"@ckeditor/ckeditor5-link": "^40.0.0",
"@ckeditor/ckeditor5-list": "^40.0.0",
"@ckeditor/ckeditor5-media-embed": "^40.0.0",
"@ckeditor/ckeditor5-mention": "^40.0.0",
"@ckeditor/ckeditor5-page-break": "^40.0.0",
"@ckeditor/ckeditor5-paragraph": "^40.0.0",
"@ckeditor/ckeditor5-paste-from-office": "^40.0.0",
"@ckeditor/ckeditor5-source-editing": "^40.0.0",
"@ckeditor/ckeditor5-special-characters": "^40.0.0",
"@ckeditor/ckeditor5-table": "^40.0.0",
"@ckeditor/ckeditor5-theme-lark": "^40.0.0",
"@ckeditor/ckeditor5-typing": "^40.0.0",
"@ckeditor/ckeditor5-word-count": "^40.0.0",
"@ckeditor/ckeditor5-ui": "^40.0.0",
"@ckeditor/ckeditor5-undo": "^40.0.0",
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: