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 position after calling setContents(delta) #1367 #1649

Closed
nipunjain87 opened this issue Aug 16, 2017 · 0 comments
Closed

Cursor position after calling setContents(delta) #1367 #1649

nipunjain87 opened this issue Aug 16, 2017 · 0 comments

Comments

@nipunjain87
Copy link

nipunjain87 commented Aug 16, 2017

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.

Compare below mentioned pens:-

Version 1.2.5: https://codepen.io/anon/pen/qXVoJN
version 1.2.2: http://codepen.io/anon/pen/KWXwgw

Steps:
Place the cusror somewhere in editor.
Upload image using image toolbar
In Pen1, the cursor will remain at its position, while in pen2, it would go after image.
This issue was not present in build no 1.2.4 and got introduced in 1.2.5.

@jhchen jhchen closed this as completed in 8924db2 Aug 27, 2017
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