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

Send the selection from the browser to the editor (events) #257

Open
fregante opened this issue Mar 13, 2023 · 0 comments
Open

Send the selection from the browser to the editor (events) #257

fregante opened this issue Mar 13, 2023 · 0 comments

Comments

@fregante
Copy link
Owner

fregante commented Mar 13, 2023

Setup

Browser: Safari
Editor: Sublime Text

Description

It seems that the browser doesn't send the updated selection back to the editor. I vaguely remember discussing this in the past but it's possible we didn't do it just to keep things simple (it's not easy to listen to the selection changes in every field type)

Edit: indeed the event isn't even supported outside Firefox on textareas https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionchange_event but it might work when attached to the document https://stackoverflow.com/a/58294874

@fregante fregante changed the title Send the selection from the browser to the editor Send the selection from the browser to the editor (events) Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant