Repository navigation
Closed
Labels
Needs TestingNeeds further testing to be confirmed.[Feature] Paste[Type] BugAn existing feature does not function as intended
Description
Describe the bug
When pasting a text string ending in a space, a non-breaking space is being added.
This only happens if the text is being written in a block and copied from there.
A string copied from another program will not yield these results.
To Reproduce
Steps to reproduce the behavior:
- I type the following piece of text in a paragraph block in the visual mode: "This is a text. "
- I copy the piece of text to my clipboard
- I paste the piece multiple times after each other, so they will be sentences within the same paragraph
- I save the post
- I reload the post
- I open the code editor and see a lot of
entries.
More instant results:
- I type the following piece of text in a paragraph block in the visual mode: "This is a text. "
- I switch to the code editor
- I copy the piece of text (including the space)
- I paste the text several times
- I press "update"
- The spaces are instantly converted into
entries - Reloading the page does gives the same results.
Bit differently in this order:
- I type the following piece of text in a paragraph block in the visual mode: "This is a text. "
- I copy the text (including the space)
- I switch to the code editor
- I paste the text after the existing text
- I press "publish"
- The space after the first piece of copy is converted to a
the rest of the spaces are normal - Reloading the page does gives the same results.
Expected behavior
I expect a regular space to be added instead of a non-breaking space. This will glue my two sentences together.
Desktop (please complete the following information):
- OS: MacOS
- Browser Chrome
- Version 70.0
Additional context
- Gutenberg 4.3.0
- WordPress 4.9.8
Metadata
Metadata
Assignees
Labels
Needs TestingNeeds further testing to be confirmed.[Feature] Paste[Type] BugAn existing feature does not function as intended
Activity
ellatrix commentedon Nov 26, 2018
I think #12166 should fix this issue. Could you confirm? Also, this seems to a duplicate of #7474?
ellatrix commentedon Nov 30, 2018
Should be fixed by #12166. Please reopen if that's not the case.
giles14 commentedon Aug 20, 2021
I'm still seeing this, when I copy-paste content from another source (including Wordpress editor) after and before using
<strong></strong>tags.ellatrix commentedon Aug 20, 2021
@giles14 could you please create a new issue?