• I’m working on some custom handling for an adaptation of the web stories plugin, and I’m looking to force a post save in response to a separate user event inside the StoryEditor. Ideally I would be able to do something like wp.data.dispatch(‘core/editor’).savePost() but this doesn’t seem to be the an option (unless I’m mistaken). If there is a similar function available, or an alternate method I could use, would someone mind informing me? Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Hey there, thanks for reaching out! It‘s an interesting use case, could you perhaps tell us a little more about it?

    Is this something built on the WordPress plugin or something custom built on top of our standalone story editor available via npm? For the former we don‘t currently expose an API for things like saving stories, for the latter you could build this yourself.

    We previously tracked this vaguely at https://github.com/GoogleForCreators/web-stories-wp/issues/10614 but curreny don‘t have concrete plans to implement this in the plugin, as it requires careful API design and consideration for things like backward compatibility.

Viewing 1 replies (of 1 total)
  • The topic ‘Programmatic save in web stories editor’ is closed to new replies.