-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
Comments
Are you expecting the arrow keys to move the cursor out of the inner input field into the editable text? |
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 |
Great find - I actually think I can implement a sort of shim by removing
contenteditable on focusin and then reselecting the input (and the reverse
on focusout) in FF. It appears to be a bit difficult to turn the mouse x y
at that point into a something that reliably reselects the intended place
(still investigating solutions for this) but as the inputs are relatively
small just focusing will suffice (it seems users will just click again if
the cursor goes somewhere odd - which will work in this case) until I can
find time to investigate a proper fix. Thanks for pushing that bug report
but I, like you, am sceptical as to how much attention it will get.
…On Mon, 23 Jul 2018 at 14:50, Marijn Haverbeke ***@***.***> wrote:
This appears to be this Firefox issue
<https://bugzilla.mozilla.org/show_bug.cgi?id=1190941> 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).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#822 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABk127PtRPuu08uh_G1FP-g4Boxh52kKks5uJdSwgaJpZM4VOyH0>
.
|
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. |
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
The text was updated successfully, but these errors were encountered: