You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm calling quill.setContents(delta) with a delta from OT server.
If the op is before the cursor, it moves the cursor forward or backwards as expected.
If the op is after the cursor, it moves the cursor to the end. For example, if a user is typing and another user is clicking Enter at the end of the doc, the cursor will jump to the new line and will break the current line in the middle.
Should Quill keep the cursor at the current position if the op is at or after the cursor?
Or maybe I should transform the local selection as part of applying the remote delta?
Resolving this issue has created another issue.
If we add an image to rich-text-editor using image toolbar, the cursor should move at end of image. But it is maintaining it's position.
This is not user friendly as user normally moves forward and he/she will have to manually click after the
image to continue adding content.
I'm calling quill.setContents(delta) with a delta from OT server.
If the op is before the cursor, it moves the cursor forward or backwards as expected.
If the op is after the cursor, it moves the cursor to the end. For example, if a user is typing and another user is clicking Enter at the end of the doc, the cursor will jump to the new line and will break the current line in the middle.
Should Quill keep the cursor at the current position if the op is at or after the cursor?
Or maybe I should transform the local selection as part of applying the remote delta?
Steps for Reproduction
Expected behavior:
Cursor should stay at the same position, after the word Hello.
Actual behavior:
Cursor jumps to the end of the document.
Platforms:
Firefox 52, Windows 7
Version:
1.2.2
The text was updated successfully, but these errors were encountered: