-
-
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
paste-from-office: Losing indent level for nested lists of different type (numbered, bullet) #7805
Comments
Lists in Word use the All list items have the same However, for some, unknown reason, the first list in the attached document has mixed I would say: I can reproduce the issue and I can't reproduce the issue at the same time. It depends on which list I use. The list used for testing:
If I use the attached document as a source for testing, I am able to reproduce the issue. However, if I create a new list with the same structure, the issue does not occur. I guess, something wrong happened with the existing list in the Word. I can't reproduce the issue when I create a fresh list. |
Could you check this in CKEditor 4? If that works there, then perhaps we need to change the way how we process nested lists in PFO in CKE5. |
Comparing
CKEditor 4 works without problems regarding the given example document (created with MS Office 365, if it matters). CKEditor 5 demo still shows the described problem. |
Findings from the other PR: #8390 (comment) & the rest of the conversation. |
Fix (paste-from-office): Improved a mechanism that detects nested lists while pasting from Word. In some scenarios, pasting nested lists could produce invalid results in the editor. Closes #7805.
📝 Reproduction Steps
Created a nested list in MS Word (Office 365) as follows:
See Copy-Paste-Mixed-List-Issue-CKEditor.docx (first list shows error; second list works).
Copy the entire list
Paste it for example to CKEditor 5 demo
✔️ Expected result
Just as all other nested lists (even for mixed outer numbered, inner bullet) the nested indentation levels should be kept as is.
❌ Actual result
Indentation level of nested list is set to 0:
📃 Other details
"@ckeditor/ckeditor5-paste-from-office": "^20.0.0"
"@ckeditor/ckeditor5-paste-from-office": "^20.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: