Skip to content

Inline code with backticks stays within the code tag when closing #11276

@cameronjonesweb

Description

@cameronjonesweb

Describe the bug
Adding inline code tags using the backtick shortcuts keeps the cursor within the code formatting and forces you to navigate out of it to write normal text.

To Reproduce

  1. Type a backtick in a paragraph block (`)
  2. Write some "code"
  3. Add another backtick to close the inline code formatting
  4. Continue typing. The cursor is still inside the code formatting and it shouldn't be

Expected behavior
After the backtick that closes the code tag is added, the cursor should automatically be outside the code tag as it is in the classic editor

Screencast
https://youtu.be/-pAGqeNckf8

Additional context

  • Gutenberg 4.1.1

Metadata

Metadata

Assignees

Labels

[Feature] Rich TextRelated to the Rich Text component that allows developers to render a contenteditable[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions