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

Cursor is positioned wrongly in Safari after dangerouslyPasteHTML #1886

Closed
hleimig opened this issue Dec 27, 2017 · 0 comments
Closed

Cursor is positioned wrongly in Safari after dangerouslyPasteHTML #1886

hleimig opened this issue Dec 27, 2017 · 0 comments

Comments

@hleimig
Copy link

hleimig commented Dec 27, 2017

Cursor is positioned at the very beginning of the editor (disregarding padding) when editor content is replaced through quill.clipboard.dangerouslyPasteHTML.

Steps for Reproduction

  1. Visit https://codepen.io/anon/pen/wpgRNQ with Safari 11 (not sure if happens in older versions)
  2. Type something inside Quill editor
  3. In the toolbar, chose one of the templates

Expected behavior:
Text should be replaced and cursor should be at index 0, as it does in other browsers.

Actual behavior:
Text is replaced but cursor e placed one line above and over the border, disregarding the editor padding.

Platforms:
macOS High Sierra, Safari 11

Version:
1.3.4

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

1 participant