📄️ initialize
Create an object from Predis.ai SDK.
📄️ on
To attach a callback for different states of the window.Predis object.
📄️ createPost
To open the Predis.ai post creation and editing flow.
📄️ editPost
Opens the Predis.ai post editor interface to modify existing posts. This method provides direct access to the post editing functionality, allowing users to update previously created posts.
📄️ onPostPublish
Callback to receive the data published from the editor. This callback is available in both createPost and editPost methods and is triggered when the user clicks the "Publish" button inside the editor interface.