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

Allow saving onto PublicLab.org #1332

Closed
jywarren opened this issue Dec 6, 2019 · 6 comments · Fixed by #1353
Closed

Allow saving onto PublicLab.org #1332

jywarren opened this issue Dec 6, 2019 · 6 comments · Fixed by #1353

Comments

@jywarren
Copy link
Member

jywarren commented Dec 6, 2019

PublicLab.org now allows (if you're logged in) for opening an image into the editor at https://publiclab.org/post (again, must be logged in)

The docs for this are here: publiclab/plots2#6594 (comment)

And I've just completed this in Infragram, here:

publiclab/infragram@7ca92db

So, we should add one more type to the ImageSequencer "Save" box, which is "Save to PublicLab.org" -- shown here:

image

Once you do this, you should see the https://PublicLab.org/post editor open, like this:

image

You can test this out by pasting the following code into the console in https://sequencer.publiclab.org --

function postToPL(imgSrc) {
  var uniq = Date.now();
  $('body').append('<form method="post" id="postToPL' + uniq + '" action="https://stable.publiclab.org/post" target="postToPLWindow"><input type="hidden" name="datauri_main_image" /></form>');
  f = $('#postToPL' + uniq)[0];
  f.datauri_main_image.value = imgSrc;
  window.open('', 'postToPLWindow');
  f.submit();
}
postToPL($('img')[0].src)
@keshav234156
Copy link
Member

@jywarren can I help you here?

@keshav234156
Copy link
Member

keshav234156 commented Dec 6, 2019

@jywarren I just tried the console method but it says You must be logged out to access this page .Do you know why?

@jywarren
Copy link
Member Author

jywarren commented Dec 6, 2019

Ah, i think at the moment you'd done it, the latest version of PublicLab.org hadn't published yet. Can you try now?

@jywarren
Copy link
Member Author

jywarren commented Dec 6, 2019

And yes, it'd be great to have help on this one! Thanks!

@jywarren
Copy link
Member Author

jywarren commented Dec 7, 2019 via email

@keshav234156
Copy link
Member

Oh!!got it .meanwhile i also a made a PR regarding this #1334

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

Successfully merging a pull request may close this issue.

2 participants