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

Rich Text: Caret should be positioned outside inline boundary on code pattern #12597

Closed
aduth opened this issue Dec 4, 2018 · 2 comments
Closed
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Enhancement A suggestion for improvement.

Comments

@aduth
Copy link
Member

aduth commented Dec 4, 2018

Steps to Reproduce:

  1. Navigate to Posts > Add New
  2. Insert a new paragraph block
  3. Type: `hello`

Expected Result:

Upon entering the terminating ` tick, it should be inferred that the formatted region is completed and that I can continue typing text as unformatted.

Actual Result:

The caret stays placed within the code region. Continued typing will be formatted as code, requiring the user to ArrowRight to escape the formatted region.

@aduth aduth added the [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable label Dec 4, 2018
@designsimply
Copy link
Member

Tested and confirmed that the caret lands inside the inline boundary when typing a terminating backtick.

Tested with WordPress 4.9.8 and Gutenberg 4.6.1 master @ 46f789a5c using Firefox 63.0.3 on macOS 10.13.6.

@designsimply designsimply added [Type] Enhancement A suggestion for improvement. [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... labels Dec 4, 2018
@ellatrix
Copy link
Member

ellatrix commented Dec 5, 2018

Duplicate of #11276.

@ellatrix ellatrix closed this as completed Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants