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

fix(textarea,toolbar): set text caret after emoji #58

Merged
merged 1 commit into from
Dec 27, 2018

Conversation

CFT-Chris
Copy link
Collaborator

When an emoji is inserted via the toolbar or textarea controls, the text caret (not visible due to #49, but I have a PR coming to fix that as well) is positioned before the inserted emoji. Subsequent emoji insertions or keyboard input occur before the inserted emoji as opposed to after.

Changes proposed in this pull request:
Set text caret position to just after inserted emoji using the setTimeout technique as is done with completions in module-emoji.js

Fixes: bug described in this PR. No "official" issue is opened for this but I can make one if desired.

@himynameistimli himynameistimli merged commit 6824715 into contentco:master Dec 27, 2018
@tuannguyenminh2086
Copy link

I updated library. but still not fixed.

@CFT-Chris
Copy link
Collaborator Author

I updated library. but still not fixed.

@tuannguyenminh2086 @himynameistimli The latest version bump didn't push a new dist/quill-emoji.css and dist/quill-emoji.js. The "library" tagged at v1.0.5 is still based off v1.0.4 src.

I didn't push dist/* with any of my three PRs — thought it would be done for a version bump-time commit. I can sync and PR with the updated dist files, and we can re-tag to v1.0.5?

@CFT-Chris CFT-Chris deleted the toolbar-textarea-selpos branch January 10, 2019 14:44
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

Successfully merging this pull request may close these issues.

3 participants