Docs menu
editPost
Open an existing post in the editor.
Usage
gnr.editPost({
post_id: "YOUR_POST_ID",
onPostPublish: function (err, data) { console.log(err, data); },
});Parameters
| Name | Description | Type | Required |
|---|---|---|---|
post_id | The post to open — from the API's post_ids, or an earlier onPostPublish. | String | Yes |
onPostPublish | Receives the post when the user presses Publish. | Function | No |
Errors
An error event with POST_NOT_FOUND when the post does not exist or belongs to another user; INITIALIZATION_FAILED when the token is missing or wrong.