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

quill.format(name, value) with a 0 length selection causes cursor jump. #1176

Closed
nikparo opened this issue Dec 11, 2016 · 0 comments
Closed

Comments

@nikparo
Copy link
Contributor

nikparo commented Dec 11, 2016

quill.format(name, value) with a 0 length selection causes the cursor to jump forward. If you type, it jumps ahead by one. If you paste something, it jumps forward by the length of what you pasted.
e.g.
ab|cdef -> abQc|def
ab|cdef -> ab123cde|f

Steps for Reproduction

  1. Go to https://quilljs.com/playground/
  2. Type something in.
  3. Place the cursor somewhere in the middle.
  4. Click bold, and hit a key.

Expected behavior:
Cursor stays just ahead of what you typed.

Actual behavior:
Cursor jumps ahead by one (and any further characters won't be bold).

Platforms:
Linux, Firefox 50.0
Linux, Chromium Version 54.0.2840.100 (64-bit)

Version:
Quill 1.1.6

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

2 participants