-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Custom text editor, copy/paste issue #4222
Comments
That's an interesting case. I have reproduced the issue - the content cannot be copied. |
@avmalyutin The edited value doesn't get copied, because Handsontable thinks that the editor is still opened, even after the user closes it. This is caused by calling this.instance.deselectCell(); in the |
@jansiegel Thank you for response. Unfortunately, with your solution there is one minor issue: if the
is not called and after the code editor dialog is opened I can press Enter key. However, the new line is not inserted in code editor but the next row is handsontable is selected. Then I wrapped the function invocation into setTimeout and it seems to work. I will test it a little. Here is the link to the solution: Hope somebody this will help in the future. Thank you for help. :-) |
@avmalyutin, thanks for your plunker. I'll close this issue now. |
hi I have similar problem |
Description
I have a table with two columns: name and code. I have created a simple custom editor for code column. The idea is, when user double clicks on the cell, the custom dialog with code editor opens. I have implemented it and posted the simplified example. (Link is below).
However, I have one issue with copy/paste functionality: if I use my editor, edit some code for the cell, press “Save”, the "code" column value seems to be correctly saved. But when I select this cell and press Ctrl+C, the value is not copied.
I read the tutorial of implementing the custom editor, but seems that I have missed something there. Of there is a bug in handsontable.
Thank you in advance.
Steps to reproduce
Demo
Link to plunker
My environment
The text was updated successfully, but these errors were encountered: