createPost
To open the Predis.ai post creation and editing flow.
Usage
predis.createPost(options);
tip
Call the createPost
method inside the on("ready")
callback which ensures that the SDK is ready.
Parameters
Name | Description | Type | Required |
---|---|---|---|
options | Options for creating a new post | Object | yes |
options.onPostPublish | Function to receive data when a post is published from the editor. See onPostPublish for more details. | Function | no |