Skip to content
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

Pasting from Google Docs on Chrome & Safari results in Bold text #1851

Closed
jswiderski opened this issue Jul 3, 2019 · 3 comments
Closed

Pasting from Google Docs on Chrome & Safari results in Bold text #1851

jswiderski opened this issue Jul 3, 2019 · 3 comments
Labels
browser:chrome browser:safari resolution:duplicate This issue is a duplicate of another issue and was merged into it. type:feature This issue reports a feature request (an idea for a new functionality or a missing option).

Comments

@jswiderski
Copy link

jswiderski commented Jul 3, 2019

Is this a bug report or feature request? (choose one)

🆕 Feature request

💻 Version of CKEditor

  • Version 12.2.0
  • Classic CKEditor Build
  • Classic CKEditor plus all available plugins there are

📋 Steps to reproduce

  1. Create Google Docs document with standard text
  2. Copy and paste it into CKEditor 5 opened in Chrome or Safari browser

✅ Expected result

Text should be standard like in the document.

❎ Actual result

All text is Bold.

📃 Other details that might be useful

Problem can be reproduced in Chrome and Safari. Other browsers like Firefox or Edge work fine.

Document:
GoogleDoc

Firefox/Edge:
Firefox

Chrome:
Chrome

@jswiderski jswiderski changed the title Pasting from Google Docs on Chrome results in Bold text Pasting from Google Docs on Chrome & Safari results in Bold text Jul 3, 2019
@jswiderski
Copy link
Author

jswiderski commented Jul 3, 2019

It seems content of a Google Document opened on Chrome and Safari is wrapped in <b> tag. CKEditor just pastes what it gets:

<html>
<body>
<!--StartFragment--><meta charset="utf-8"><b style="font-weight:normal;" id="docs-internal-guid-74a5e0cd-7fff-0ff7-882d-2be220650714"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</span></p><br /><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:italic;font-variant:normal;text-decoration:underline;-webkit-text-decoration-skip:none;text-decoration-skip-ink:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&nbsp;</span></p><br /><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&nbsp;</span></p><br /><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:8pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.&nbsp;</span></p><br /><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><a href="http://test.com" style="text-decoration:none;"><span style="font-size:11pt;font-family:Arial;color:#1155cc;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;-webkit-text-decoration-skip:none;text-decoration-skip-ink:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</span></a></p><br /><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:24pt;font-family:'Comic Sans MS';color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span></p></b><br class="Apple-interchange-newline"><!--EndFragment-->
</body>
</html>

@jswiderski
Copy link
Author

CKEditor 4 team has solved this problem lately - ckeditor/ckeditor4#835.

@jswiderski jswiderski added the type:feature This issue reports a feature request (an idea for a new functionality or a missing option). label Jul 3, 2019
@jswiderski
Copy link
Author

@jswiderski jswiderski added the resolution:duplicate This issue is a duplicate of another issue and was merged into it. label Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser:chrome browser:safari resolution:duplicate This issue is a duplicate of another issue and was merged into it. type:feature This issue reports a feature request (an idea for a new functionality or a missing option).
Projects
None yet
Development

No branches or pull requests

1 participant