quickMockup icon indicating copy to clipboard operation
quickMockup copied to clipboard

save to codepen (or other sharing platform)

Open jdittrich opened this issue 9 years ago • 4 comments

Save HTML and CSS to a code sharing platform via API

find/create/integrate

  • [x] method to read out the needed HTML/CSS (possibly with cleaning out non-needed elements)
    • [Post to prefilled Codepen(http://blog.codepen.io/documentation/api/prefill/) Documentation
  • [x] method to build an API compatible JSON object
  • [x] method to send it to the API
  • [ ] method to display the URL the mockup was posted to
  • [ ] UI design to activate upload and show URL

jdittrich avatar Jan 20 '16 21:01 jdittrich

relates to/solves #4

jdittrich avatar Jan 20 '16 21:01 jdittrich

it works. I hope. If you look at the code, there is some escaping magic (mess?) going on, but I got it working. If you get a 500 Error from Codepen it is most likely not their fault, but mine/ours.

jdittrich avatar Jan 24 '16 09:01 jdittrich

It seems that the export to CodePen is broken.

ldidry avatar Sep 11 '18 12:09 ldidry

Indeed it looks broken on https://jdittrich.github.io/quickMockup

destination url http://codepen.io/pen/define doesnt exist

JLuc avatar Nov 08 '19 19:11 JLuc