ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.
https://ckeditor.com/ckeditor-4
Other
5.79k stars 2.47k forks source link

Anchor link settings are automatically inserted when copying and pasting from ms word #4732

Closed nguyenthihaitk closed 3 years ago

nguyenthihaitk commented 3 years ago

Type of report

Bug

Provide detailed reproduction steps (if any)

1.Open CKEditor 4 sample.(https://ckeditor.com/docs/ckeditor4/latest/examples/pastefromword.html) 2.Paste content from pastefromword_testing.docx

Expected result

All the contents are pasted correctly. image

Actual result

The flag stands and the text color turns blue. Anchor link are automatically inserted. image

Other details

sculpt0r commented 3 years ago

Hi @nguyenthihaitk , Thank you for the report. I can confirm this issue with latest (4.16.1 and 4.16.0) samples. At least with Chrome & FF.

But it works for 4.15.0 so I'm adding regression label.

sridharravva commented 3 years ago

Any update on this anchor link issue? Please let me know, as I am also getting the similar issue on chrome browser whenever I am copying/pasting numbered lists from MS work into CKEditor. I am using CKEDitor 4.16.1 standard package.

Basically, here it is the issue with numbered bullet list while copying the content with numbered bullet list from MS word and pasting into CKEditor using the "paste from word" button, then it puts lot of images, red anchor tags in the CKEditor content, messing up the actual numbered bullets.

Example:

Original Content that we are copying from MS Word :

OriginalContent_NumeredBulletList

After Copy and Paste above original content into CKEditor using "Paste from word" button, then we get the below result and this the issue with copy/paste for numbered bulleted list:

AfterCopyPasteIntoCKEditor_UsingPasteFromButton_UnderChromeBrowser

Dumluregn commented 3 years ago

Hello, we haven't handle this issue yet. Please follow this thread if you want to be up to date.

sridharravva commented 3 years ago

Thanks for letting me know.

Comandeer commented 3 years ago

It seems that this issue is not a regression. It does not reproduce in docs for older CKEditor 4 version due to the fact that Anchor button is disabled there. However on full preset of CKEditor 4 it can be reproduced back to CKEditor 4.5.0.

Additionally the behaviour of CKEditor 4 seems to be correct, as Word provides content with an anchor inside it. It's caused by the fact that there is a hidden bookmark inside the Word document used for testing:

Bookmarks dialog with the list of hidden bookmarks that contain one bookmark

This bookmark then, correctly, appears as anchor inside CKEditor 4.