Function for saving post in Cornerstone?

I would like to save the post via Javascript inside the previewer. Do you happen to have a Javascript function I can call? Or a PHP function I can call with Ajax? I’ve been scouring through your code trying to figure out how you go about it, but I’m not finding anything. TIA.

And there is nothing in your documentation about it.

This doesn’t exist. Are you trying to save from within the Preview, or the Cornerstone App?

From within the previewer. I ended up just having the JS click the save button for now, which works, but it’s not ideal.

Okay glad that worked out. I’m adding onto the App API in 6.7, I’ll try to get a simple function to use when after that releases. Have a great day.