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

Kbd rich text node traps cursor #31

Closed
b-kelly opened this issue Mar 15, 2021 · 1 comment
Closed

Kbd rich text node traps cursor #31

b-kelly opened this issue Mar 15, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@b-kelly
Copy link
Collaborator

b-kelly commented Mar 15, 2021

Reported on Meta.SE.

Describe the bug

If I want to add some fancy keyboard buttons using <kbd>X</kbd>

X

They show up perfectly in the rich formatting, but when putting your cursor behind the X will make you type inside the kbd element. There is no way to type anything on that same line. Not even forcing your your cursor to appear there by double clicking (as would work in MS Word).

Reproduction steps:

  • Start in markdown mode

  • Add the following text:

    <kbd>X</kbd>
  • Switch to rich text mode

  • Placing the cursor inside the kbd element allows you to edit it, but your cursor is trapped and cannot leave the element

@b-kelly
Copy link
Collaborator Author

b-kelly commented Mar 17, 2021

Closing in favor of tracking in #64.

@b-kelly b-kelly closed this as completed Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant