-
Notifications
You must be signed in to change notification settings - Fork 114
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: #98 , and make copy more compatible #144
Conversation
Thanks for working out this fix Cloyd 👍. It looks good at first sight. I'll do some thorough testing tomorrow. |
I've done some testing @cloydlau, and had a good look at the code. I like that the code is a self-contained function, very neat! Two small feedbacks:
And one question: do you know whether pasting works on non-secure http origins? If not, is there a similar solution possible you think? |
Thanks for the updates, looks good! I just came across one more issue though I'm not sure if we should fix it: after copying using the "legacy" solution, the editor loses focus. What do you think, should we restore focus afterwards? |
Indeed! The "legacy" solution is for outdated browsers and unsecured websites, in which case we may only gurantee the core functions. So my personal view is to leave it be. |
Yes that makes sense. Thanks! |
The fix has been published in |
My pleasure. Actually I made this PR because someone raised a same issue in my repo json-editor-vue (an universal Vue wrapper for |
Ah, nice, thanks! I've added a section linking to wrapper libraries in the readme, right now only containing you Vue library: https://github.com/josdejong/svelte-jsoneditor#wrapper-libraries-for-specific-frameworks |
Thanks! It really encouraged me. |
You're welcome! Thanks for making the library easier to use in Vue 😊 . Have a nice weekend. |
No description provided.