quill icon indicating copy to clipboard operation
quill copied to clipboard

Can select text but not write

Open ripper17 opened this issue 5 years ago • 1 comments

Steps for Reproduction

  1. Visit https://jsfiddle.net/pm758c4r/ with Firefox (I could not reproduce this issue in Chromium, IE, EDGE, Opera...)
  2. Place the caret at any position in the Quill-Textarea by left-clicking with your mouse. You can now type in text
  3. With the right mouse button, click on ''Link to quill hompage'' and select "Open in new Tab"
  4. A new tab will be opened in the background
  5. Select text with the keyboard (i.e. SHIFT + Arrow-Key)
  6. Try to type some more text

Expected behavior:

Either, the selection should not work (as in any other browser)

Or we should now be able to type text.

Actual behavior: Text is selected, but it's not possible to write any text. This is quite confusing for the user.

Platforms: Tested on Windows 7, Firefox 65 and Ubuntu Linux, Firefox 65 Other browsers do not seem to be affected from this issue.

I'm not sure whether this is an incorrect behaviour of Firefox or Quill, but this issue does not happen, if I'm using standard HTML or

Version: 1.3.6 (see jsfiddle)

ripper17 avatar Jun 14 '19 09:06 ripper17

One more thing to add: I now also tried a <div contenteditable="true">. This behaves the same as a textarea or input element. The problem only appears with Quill. I'd guess that the Shift+Keypress is somehow intercepted by Quill and it assumes that the carret is still in the editor / that the editor still has focus?

ripper17 avatar Jun 17 '19 06:06 ripper17