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

[prosemirror-view] nodeViews Firefox cursoring #822

Open
1 of 4 tasks
RichieAHB opened this issue Jul 13, 2018 · 4 comments
Open
1 of 4 tasks

[prosemirror-view] nodeViews Firefox cursoring #822

RichieAHB opened this issue Jul 13, 2018 · 4 comments

Comments

@RichieAHB
Copy link

RichieAHB commented Jul 13, 2018

Issue details

Apologies if this is already an issue but I couldn't find one exactly like this (although I know Firefox is a pain re: selection in other cases). When adding an input to a node view and Firefox won't let me move the cursor inside that input. Works fine in Chrome.

Steps to reproduce

Repro - type some text into the input and try to cursor around (with either mouse or arrow keys)

Affected platforms

  • Chrome
  • Firefox
  • Internet Explorer (?)
  • Other (?)
@marijnh
Copy link
Member

marijnh commented Jul 23, 2018

Are you expecting the arrow keys to move the cursor out of the inner input field into the editable text?

@marijnh
Copy link
Member

marijnh commented Jul 23, 2018

This appears to be this Firefox issue which has received zero attention in the past three years. When you focus the textarea in this situation you get a weird, corrupt selection (both document.activeElement and getSelection() return nonsense values).

@RichieAHB
Copy link
Author

RichieAHB commented Jul 24, 2018 via email

@marijnh
Copy link
Member

marijnh commented Jul 25, 2018

I'm going to leave this open, since I'm sure it'll come up for other people, but I don't currently have the time to look for a workaround that would solve it on the ProseMirror side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants