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

Add "Open in New Tab" to text boxes #33

Open
bobh66 opened this issue Mar 14, 2018 · 1 comment
Open

Add "Open in New Tab" to text boxes #33

bobh66 opened this issue Mar 14, 2018 · 1 comment

Comments

@bobh66
Copy link

bobh66 commented Mar 14, 2018

The Open in Fullscreen and Copy to Clipboard actions on text boxes are very useful, but it would also be nice to have an "Open in New Tab" action that would take the content of the text box and open it in a new tab/window. If the content-type is set properly some browsers (Firefox, Chrome) will automatically format the JSON into a readable/explorable format.

I would offer to implement this myself but when I looked at the code for Open in Fullscreen and Copy to Clipboard I realized I have no idea how to do it. I'll be glad to do the work if someone can point me in the right direction.

@GuyShaanan
Copy link
Collaborator

Hi Bob.
From a quick search I see that Firefox and Chrome have started blocking-top-level-navigations-data-urls (i.e. opening a new tab with the JSON data), and although they say data:application/json urls are allowed, I wasn't able to make it work.
There are workarounds but they don't achieve the same effect.

If you have a working example I will be happy to assist you adding this code to CloudFlow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants