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

" " is converted to " " when using the link UI #12512

Closed
ZebulanStanphill opened this issue Dec 2, 2018 · 2 comments
Closed

" " is converted to " " when using the link UI #12512

ZebulanStanphill opened this issue Dec 2, 2018 · 2 comments
Labels
[Block] Paragraph Affects the Paragraph Block [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended

Comments

@ZebulanStanphill
Copy link
Member

ZebulanStanphill commented Dec 2, 2018

The issue

When trying to add a link to this string of raw text:  , the text is converted into  .

Reproduction steps

  1. Edit a Paragraph block as HTML.
  2. Replace the content between the <p> tags with the following: &amp;nbsp;.
  3. Switch back to editing the block visually.
  4. Select the entire string of text.
  5. Click the Link button in the block toolbar.
  6. Enter # as the URL and press Enter.
  7. Edit the block as HTML.
  8. Notice that the content has been modified and is now <a href="#">&nbsp;</a>.

Expected behavior

After adding a link, the content between the <p> tags should be <a href="#">&amp;nbsp;</a>.

Environment

  • OS: Antergos Linux
  • Browser: Firefox Developer Edition 64.0b14 (also tested in Dissenter Browser 0.68, a browser based on Chromium 76)
  • WordPress: 4.9.8 (also tested in 5.2.3)
  • Gutenberg: 4.6.1 (also tested in 6.6.0)
@swissspidy swissspidy added Needs Testing Needs further testing to be confirmed. [Block] Paragraph Affects the Paragraph Block labels Dec 2, 2018
@kcalkmc
Copy link

kcalkmc commented Dec 9, 2018

Testing using WP 5.0, Windows 7, Chrome.
Duplicated reported issue,

wp-issue-12512

@designsimply designsimply added [Type] Bug An existing feature does not function as intended and removed Needs Testing Needs further testing to be confirmed. labels Dec 9, 2018
@ellatrix ellatrix added the [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable label Feb 19, 2019
@ZebulanStanphill
Copy link
Member Author

This has been fixed as of Gutenberg 6.9.0, presumably because of #17994.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Paragraph Affects the Paragraph Block [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

5 participants