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

Safari selection and caret issue inside Shadow dom #1310

Closed
roman-kulakov opened this issue Sep 12, 2022 · 1 comment
Closed

Safari selection and caret issue inside Shadow dom #1310

roman-kulakov opened this issue Sep 12, 2022 · 1 comment

Comments

@roman-kulakov
Copy link

I have several issues while using prosemirror on Safari inside shadow dom.

  1. Impossible to change caret position and type smth

Steps to reproduce:

  • type text
  • move caret to the middle of the text
  • type smth

ER: new text types in the new position
AR: only one letter types in the new position and then caret jumps to the end of the text.

  1. Impossible to make text bold/italic

Steps to reproduce:

  • select text in the editor
  • press bold or italic

ER: text becomes bold or italic
AR: nothing happens

Repo: repo
Safari desktop version: 15.5

I am aware of those 2 issues:
#476
Safari's Selection is broken in shadow roots

Not sure if this duplication or not, but it would be good to understand where we stand here. As I understand there is a possible solution that could be ported from codemirror.

@marijnh
Copy link
Member

marijnh commented Sep 13, 2022

Yes, this sounds like #476. The hack used in CodeMirror could probably be applied in ProseMirror, but would involve a bunch of restructuring, and I haven't gotten around to it yet. Closing this as duplicate.

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