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 single line of text copied from Google Doc comes through as bold #14030

Closed
mboynes opened this issue Feb 21, 2019 · 1 comment · Fixed by #14138
Closed

Pasting single line of text copied from Google Doc comes through as bold #14030

mboynes opened this issue Feb 21, 2019 · 1 comment · Fixed by #14138
Labels
[Feature] Paste [Type] Bug An existing feature does not function as intended

Comments

@mboynes
Copy link
Contributor

mboynes commented Feb 21, 2019

When copying a single line of unformatted text in Google Docs, and pasting it in a paragraph block, the text is pasting as bold, even though the source text is not bold. However, when copying that same text as part of a multi-paragraph copy, it pastes correctly in Gutenberg. See attached screenshot.

To Reproduce

Steps to reproduce the behavior:

  1. Copy a single line or a fragment of a line of unformatted text from a Google Doc
  2. Paste the content in a paragraph block
  3. The content pastes as bold

Expected behavior
The content should paste the same as the source formatting.

Screenshots

paste-bold-bug

Desktop (please complete the following information):

  • OS: MacOS Mojave
  • Browser: Chrome
  • Version 72.0.3626.109

Additional context

  • WordPress 5.0.3
  • The HTML in the block is clean, <p><strong>Lorem...</strong></p> (this is not the same as Extra Strong Tags Added To Bold Text #12991)
  • Copying text that is a mix of bold and not-bold formatting pastes as just bold, e.g. copying "Lorem ipsum dolor" pastes entirely in bold
@ellatrix
Copy link
Member

Google Docs always wraps everything in <strong> tags. Looks like we're not successful at removing it for inline paste. Could you share what's been logged in the console?

@ellatrix ellatrix added [Feature] Paste [Type] Bug An existing feature does not function as intended labels Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Paste [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants