-
Notifications
You must be signed in to change notification settings - Fork 49
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
I using for a contenteditable div #68
Comments
@ivirabyan, please help! |
The problem is that when you click on "edit" button, you initializer mentionsInput not only for the edit form, but for the main comment textbox too, which is already initialized. Repeated calls to mentionsInput on the same field leads to incorrect behaviour. So solution is to initialize specific field, not using a common selector '.comment-content'. |
@ivirabyan thank for support!
|
It doesn't work because now you're trying to destroy yet uninitialized textareas. You'd better initialize specific textarea which you just opened dynamically. I can't see your code now, so assuming you textarea is a child of |
Thanks! |
example: http://nhadatanbien.com/comment/index.html
step 1: type @A and select one in main comment textbox
step 2: click to edit a comment
step 3: type @A and select one
step 4: return main comment textbox and type @A, select one.
bug can't get start position
@ivirabyan how to fix this problem? thank you so much
The text was updated successfully, but these errors were encountered: