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

Copy JSON after it has rendered #19

Open
izahoor-vwks opened this issue Aug 16, 2017 · 2 comments
Open

Copy JSON after it has rendered #19

izahoor-vwks opened this issue Aug 16, 2017 · 2 comments

Comments

@izahoor-vwks
Copy link

Hi,

Is there any option available to copy the JSON text after it has rendered. I tried to copy that and there are special characters that also get copied that are not required.

Regards

@caldwell
Copy link
Owner

caldwell commented Sep 7, 2017

Yeah, it would be nice to be able to select it and get the plain JSON text when you copy. But it's not set up to do that. It would be nice if there were a browser "copy" event we could tap into to adjust the text, but there doesn't appear to be (though I might have missed something). Another idea might be to render all the extra disclosure symbols using css content, because I think that doesn't get copied. But that would cause an API change (since the disclosure symbols would have to move into CSS instead of being stuck as inline text nodes).

I'll keep thinking about it…

@laurentlb
Copy link

I've modified the code to insert an image instead of the special characters, it's much nicer in my opinion.

(I don't know what would be the right API for it)

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

3 participants