Drafts Reference

Version

The Version object represents a single version in the version history of a draft. Versions can by loaded through the versions property of the Draft object.

Instance Properties

Examples

// load versions
let versions = draft.versions

for (let v of versions) {
    console.log(v.createdAt + ": " + v.content + "\n");
}

draft.saveVersion(); // create new version