Skip to main content

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

NameDescriptionTypeRequired
optionsOptions for creating a new postObjectyes
options.onPostPublishFunction to receive data when a post is published from the editor. See onPostPublish for more details.Functionno