I can see in the API documentation that you can specify allowPublishAndClose in the options for editorService.contentEditor. Without this you cannot make use of the submit function in the object.
I'd prefer to just hook into the event when Save and Publish is clicked, but I can't seem to do that. So if I enable the Publish and close button, can I hide the Save and Publish button?
Or is there a way to hook into when Save and Publish is clicked?
Here is the object I'm passing into editorService.contentEditor:
editorService.contentEditor saveAndPublish hook
I can see in the API documentation that you can specify
allowPublishAndClose
in the options foreditorService.contentEditor
. Without this you cannot make use of thesubmit
function in the object.I'd prefer to just hook into the event when Save and Publish is clicked, but I can't seem to do that. So if I enable the Publish and close button, can I hide the Save and Publish button?
Or is there a way to hook into when Save and Publish is clicked?
Here is the object I'm passing into
editorService.contentEditor
:is working on a reply...