Anchored Metadata (6)
Anchored Metadata (6)
metadata.attach
metadata.attach
editor.doc.metadata.attach(...)| Field | Type | Req | Description |
|---|---|---|---|
id | string | ||
namespace | string | ✓ | |
payload | any | ✓ | |
target | SelectionTarget | ✓ | SelectionTarget |
target.end | SelectionPoint | ✓ | SelectionPoint |
target.kind | "selection" | ✓ | Constant: "selection" |
target.start | SelectionPoint | ✓ | SelectionPoint |
metadata.list
metadata.list
editor.doc.metadata.list(...)| Field | Type | Req | Description |
|---|---|---|---|
limit | integer | ||
namespace | string | ||
offset | integer | ||
within | SelectionTarget | SelectionTarget | |
within.end | SelectionPoint | SelectionPoint | |
within.kind | "selection" | Constant: "selection" | |
within.start | SelectionPoint | SelectionPoint |
metadata.get
metadata.get
metadata.update
metadata.update
metadata.remove
metadata.remove
metadata.resolve
metadata.resolve
Blocks (3)
Blocks (3)
blocks.list
blocks.list
editor.doc.blocks.list(...)| Field | Type | Req | Description |
|---|---|---|---|
includeText | boolean | ||
limit | number | ||
nodeTypes | ”paragraph” | “heading” | “listItem” | …[] | ||
offset | number |
blocks.delete
blocks.delete
editor.doc.blocks.delete(...)| Field | Type | Req | Description |
|---|---|---|---|
target | DeletableBlockNodeAddress | ✓ | DeletableBlockNodeAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | ”paragraph” | “heading” | “listItem” | … | ✓ | "paragraph", "heading", "listItem", "table", "sdt" |
blocks.deleteRange
blocks.deleteRange
editor.doc.blocks.deleteRange(...)| Field | Type | Req | Description |
|---|---|---|---|
end | BlockNodeAddress | ✓ | BlockNodeAddress |
end.kind | "block" | ✓ | Constant: "block" |
end.nodeId | string | ✓ | |
end.nodeType | ”paragraph” | “heading” | “listItem” | … | ✓ | "paragraph", "heading", "listItem", "table", "tableRow", "tableCell", "tableOfContents", "image", "sdt" |
start | BlockNodeAddress | ✓ | BlockNodeAddress |
start.kind | "block" | ✓ | Constant: "block" |
start.nodeId | string | ✓ | |
start.nodeType | ”paragraph” | “heading” | “listItem” | … | ✓ | "paragraph", "heading", "listItem", "table", "tableRow", "tableCell", "tableOfContents", "image", "sdt" |
Bookmarks (5)
Bookmarks (5)
bookmarks.list
bookmarks.list
editor.doc.bookmarks.list(...)| Field | Type | Req | Description |
|---|---|---|---|
in | StoryLocator | StoryLocator | |
limit | integer | ||
offset | integer |
bookmarks.get
bookmarks.get
editor.doc.bookmarks.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "entity", entityType: "bookmark" } | ✓ | |
target.entityType | "bookmark" | ✓ | Constant: "bookmark" |
target.kind | "entity" | ✓ | Constant: "entity" |
target.name | string | ✓ | |
target.story | StoryLocator | StoryLocator |
bookmarks.insert
bookmarks.insert
editor.doc.bookmarks.insert(...)| Field | Type | Req | Description |
|---|---|---|---|
at | TextTarget | ✓ | TextTarget |
at.kind | "text" | ✓ | Constant: "text" |
at.segments | TextSegment[] | ✓ | |
at.story | StoryLocator | StoryLocator | |
name | string | ✓ | |
tableColumn | object | ||
tableColumn.colFirst | integer | ||
tableColumn.colLast | integer |
bookmarks.rename
bookmarks.rename
editor.doc.bookmarks.rename(...)| Field | Type | Req | Description |
|---|---|---|---|
newName | string | ✓ | |
target | { kind: "entity", entityType: "bookmark" } | ✓ | |
target.entityType | "bookmark" | ✓ | Constant: "bookmark" |
target.kind | "entity" | ✓ | Constant: "entity" |
target.name | string | ✓ | |
target.story | StoryLocator | StoryLocator |
bookmarks.remove
bookmarks.remove
editor.doc.bookmarks.remove(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "entity", entityType: "bookmark" } | ✓ | |
target.entityType | "bookmark" | ✓ | Constant: "bookmark" |
target.kind | "entity" | ✓ | Constant: "entity" |
target.name | string | ✓ | |
target.story | StoryLocator | StoryLocator |
Capabilities (1)
Capabilities (1)
capabilities.get
capabilities.get
Captions (6)
Captions (6)
captions.list
captions.list
editor.doc.captions.list(...)| Field | Type | Req | Description |
|---|---|---|---|
label | string | ||
limit | integer | ||
offset | integer |
captions.get
captions.get
editor.doc.captions.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "paragraph" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "paragraph" | ✓ | Constant: "paragraph" |
captions.insert
captions.insert
editor.doc.captions.insert(...)| Field | Type | Req | Description |
|---|---|---|---|
adjacentTo | BlockNodeAddress | ✓ | BlockNodeAddress |
adjacentTo.kind | "block" | ✓ | Constant: "block" |
adjacentTo.nodeId | string | ✓ | |
adjacentTo.nodeType | ”paragraph” | “heading” | “listItem” | … | ✓ | "paragraph", "heading", "listItem", "table", "tableRow", "tableCell", "tableOfContents", "image", "sdt" |
label | string | ✓ | |
position | ”above” | “below” | ✓ | "above", "below" |
text | string |
captions.update
captions.update
editor.doc.captions.update(...)| Field | Type | Req | Description |
|---|---|---|---|
patch | object | ✓ | |
patch.text | string | ||
target | { kind: "block", nodeType: "paragraph" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "paragraph" | ✓ | Constant: "paragraph" |
captions.remove
captions.remove
editor.doc.captions.remove(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "paragraph" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "paragraph" | ✓ | Constant: "paragraph" |
captions.configure
captions.configure
editor.doc.captions.configure(...)| Field | Type | Req | Description |
|---|---|---|---|
chapterStyle | string | ||
format | ”decimal” | “lowerRoman” | “upperRoman” | … | "decimal", "lowerRoman", "upperRoman", "lowerLetter", "upperLetter" | |
includeChapter | boolean | ||
label | string | ✓ |
Citations (15)
Citations (15)
citations.list
citations.list
citations.get
citations.get
editor.doc.citations.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "inline", nodeType: "citation" } | ✓ | |
target.anchor | InlineAnchor | ✓ | InlineAnchor |
target.anchor.end | Position | ✓ | Position |
target.anchor.end.blockId | string | ✓ | |
target.anchor.end.offset | integer | ✓ | |
target.anchor.start | Position | ✓ | Position |
target.anchor.start.blockId | string | ✓ | |
target.anchor.start.offset | integer | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeType | "citation" | ✓ | Constant: "citation" |
citations.insert
citations.insert
editor.doc.citations.insert(...)| Field | Type | Req | Description |
|---|---|---|---|
at | TextTarget | ✓ | TextTarget |
at.kind | "text" | ✓ | Constant: "text" |
at.segments | TextSegment[] | ✓ | |
at.story | StoryLocator | StoryLocator | |
sourceIds | string[] | ✓ |
citations.update
citations.update
editor.doc.citations.update(...)| Field | Type | Req | Description |
|---|---|---|---|
patch | object | ✓ | |
patch.sourceIds | string[] | ||
target | { kind: "inline", nodeType: "citation" } | ✓ | |
target.anchor | InlineAnchor | ✓ | InlineAnchor |
target.anchor.end | Position | ✓ | Position |
target.anchor.end.blockId | string | ✓ | |
target.anchor.end.offset | integer | ✓ | |
target.anchor.start | Position | ✓ | Position |
target.anchor.start.blockId | string | ✓ | |
target.anchor.start.offset | integer | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeType | "citation" | ✓ | Constant: "citation" |
citations.remove
citations.remove
editor.doc.citations.remove(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "inline", nodeType: "citation" } | ✓ | |
target.anchor | InlineAnchor | ✓ | InlineAnchor |
target.anchor.end | Position | ✓ | Position |
target.anchor.end.blockId | string | ✓ | |
target.anchor.end.offset | integer | ✓ | |
target.anchor.start | Position | ✓ | Position |
target.anchor.start.blockId | string | ✓ | |
target.anchor.start.offset | integer | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeType | "citation" | ✓ | Constant: "citation" |
citations.sources.list
citations.sources.list
editor.doc.citations.sources.list(...)| Field | Type | Req | Description |
|---|---|---|---|
limit | integer | ||
offset | integer | ||
type | string |
citations.sources.get
citations.sources.get
editor.doc.citations.sources.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "entity", entityType: "citationSource" } | ✓ | |
target.entityType | "citationSource" | ✓ | Constant: "citationSource" |
target.kind | "entity" | ✓ | Constant: "entity" |
target.sourceId | string | ✓ |
citations.sources.insert
citations.sources.insert
editor.doc.citations.sources.insert(...)| Field | Type | Req | Description |
|---|---|---|---|
fields | object | ✓ | |
fields.authors | object[] | ||
fields.city | string | ||
fields.doi | string | ||
fields.edition | string | ||
fields.editor | object[] | ||
fields.issue | string | ||
fields.journalName | string | ||
fields.medium | string | ||
fields.pages | string | ||
fields.publisher | string | ||
fields.shortTitle | string | ||
fields.standardNumber | string | ||
fields.title | string | ||
fields.translator | object[] | ||
fields.url | string | ||
fields.volume | string | ||
fields.year | string | ||
type | ”book” | “journalArticle” | “conferenceProceedings” | … | ✓ | "book", "journalArticle", "conferenceProceedings", "report", "website", "patent", "case", "statute", "thesis", "film", "interview", "misc" |
citations.sources.update
citations.sources.update
editor.doc.citations.sources.update(...)| Field | Type | Req | Description |
|---|---|---|---|
patch | object | ✓ | |
patch.authors | object[] | ||
patch.city | string | ||
patch.doi | string | ||
patch.edition | string | ||
patch.editor | object[] | ||
patch.issue | string | ||
patch.journalName | string | ||
patch.medium | string | ||
patch.pages | string | ||
patch.publisher | string | ||
patch.shortTitle | string | ||
patch.standardNumber | string | ||
patch.title | string | ||
patch.translator | object[] | ||
patch.url | string | ||
patch.volume | string | ||
patch.year | string | ||
target | { kind: "entity", entityType: "citationSource" } | ✓ | |
target.entityType | "citationSource" | ✓ | Constant: "citationSource" |
target.kind | "entity" | ✓ | Constant: "entity" |
target.sourceId | string | ✓ |
citations.sources.remove
citations.sources.remove
editor.doc.citations.sources.remove(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "entity", entityType: "citationSource" } | ✓ | |
target.entityType | "citationSource" | ✓ | Constant: "citationSource" |
target.kind | "entity" | ✓ | Constant: "entity" |
target.sourceId | string | ✓ |
citations.bibliography.get
citations.bibliography.get
editor.doc.citations.bibliography.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "bibliography" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "bibliography" | ✓ | Constant: "bibliography" |
citations.bibliography.insert
citations.bibliography.insert
editor.doc.citations.bibliography.insert(...)| Field | Type | Req | Description |
|---|---|---|---|
at | { kind: "documentStart" } | { kind: "documentEnd" } | { kind: "before" } | { kind: "after" } | ✓ | One of: object(kind=“documentStart”), object(kind=“documentEnd”), object(kind=“before”), object(kind=“after”) |
style | string |
citations.bibliography.rebuild
citations.bibliography.rebuild
editor.doc.citations.bibliography.rebuild(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "bibliography" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "bibliography" | ✓ | Constant: "bibliography" |
citations.bibliography.configure
citations.bibliography.configure
editor.doc.citations.bibliography.configure(...)| Field | Type | Req | Description |
|---|---|---|---|
style | string | ✓ | |
target | { kind: "block", nodeType: "bibliography" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "bibliography" | ✓ | Constant: "bibliography" |
citations.bibliography.remove
citations.bibliography.remove
editor.doc.citations.bibliography.remove(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "bibliography" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "bibliography" | ✓ | Constant: "bibliography" |
Comments (5)
Comments (5)
Content Controls (55)
Content Controls (55)
create.contentControl
create.contentControl
editor.doc.create.contentControl(...)| Field | Type | Req | Description |
|---|---|---|---|
alias | string | ||
at | SelectionTarget | SelectionTarget | |
at.end | SelectionPoint | SelectionPoint | |
at.kind | "selection" | Constant: "selection" | |
at.start | SelectionPoint | SelectionPoint | |
content | string | ||
controlType | string | ||
kind | ”block” | “inline” | ✓ | "block", "inline" |
lockMode | ”unlocked” | “sdtLocked” | “contentLocked” | … | "unlocked", "sdtLocked", "contentLocked", "sdtContentLocked" | |
tag | string | ||
target | { nodeType: "sdt" } | ||
target.kind | ”block” | “inline” | "block", "inline" | |
target.nodeId | string | ||
target.nodeType | "sdt" | Constant: "sdt" |
contentControls.list
contentControls.list
editor.doc.contentControls.list(...)| Field | Type | Req | Description |
|---|---|---|---|
controlType | string | ||
limit | integer | ||
offset | integer | ||
tag | string |
contentControls.get
contentControls.get
editor.doc.contentControls.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.listInRange
contentControls.listInRange
editor.doc.contentControls.listInRange(...)| Field | Type | Req | Description |
|---|---|---|---|
endBlockId | string | ✓ | |
limit | integer | ||
offset | integer | ||
startBlockId | string | ✓ |
contentControls.selectByTag
contentControls.selectByTag
editor.doc.contentControls.selectByTag(...)| Field | Type | Req | Description |
|---|---|---|---|
limit | integer | ||
offset | integer | ||
tag | string | ✓ |
contentControls.selectByTitle
contentControls.selectByTitle
editor.doc.contentControls.selectByTitle(...)| Field | Type | Req | Description |
|---|---|---|---|
limit | integer | ||
offset | integer | ||
title | string | ✓ |
contentControls.listChildren
contentControls.listChildren
editor.doc.contentControls.listChildren(...)| Field | Type | Req | Description |
|---|---|---|---|
limit | integer | ||
offset | integer | ||
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.getParent
contentControls.getParent
editor.doc.contentControls.getParent(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.wrap
contentControls.wrap
editor.doc.contentControls.wrap(...)| Field | Type | Req | Description |
|---|---|---|---|
alias | string | ||
kind | ”block” | “inline” | ✓ | "block", "inline" |
lockMode | ”unlocked” | “sdtLocked” | “contentLocked” | … | "unlocked", "sdtLocked", "contentLocked", "sdtContentLocked" | |
tag | string | ||
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.unwrap
contentControls.unwrap
editor.doc.contentControls.unwrap(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.delete
contentControls.delete
editor.doc.contentControls.delete(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.copy
contentControls.copy
editor.doc.contentControls.copy(...)| Field | Type | Req | Description |
|---|---|---|---|
destination | { nodeType: "sdt" } | ✓ | |
destination.kind | ”block” | “inline” | ✓ | "block", "inline" |
destination.nodeId | string | ✓ | |
destination.nodeType | "sdt" | ✓ | Constant: "sdt" |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.move
contentControls.move
editor.doc.contentControls.move(...)| Field | Type | Req | Description |
|---|---|---|---|
destination | { nodeType: "sdt" } | ✓ | |
destination.kind | ”block” | “inline” | ✓ | "block", "inline" |
destination.nodeId | string | ✓ | |
destination.nodeType | "sdt" | ✓ | Constant: "sdt" |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.patch
contentControls.patch
editor.doc.contentControls.patch(...)| Field | Type | Req | Description |
|---|---|---|---|
alias | any | ||
appearance | ”boundingBox” | “tags” | “hidden” | "boundingBox", "tags", "hidden" | |
color | string | ||
placeholder | string | ||
showingPlaceholder | boolean | ||
tabIndex | integer | ||
tag | any | ||
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
temporary | boolean |
contentControls.setLockMode
contentControls.setLockMode
editor.doc.contentControls.setLockMode(...)| Field | Type | Req | Description |
|---|---|---|---|
lockMode | ”unlocked” | “sdtLocked” | “contentLocked” | … | ✓ | "unlocked", "sdtLocked", "contentLocked", "sdtContentLocked" |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.setType
contentControls.setType
editor.doc.contentControls.setType(...)| Field | Type | Req | Description |
|---|---|---|---|
controlType | string | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.getContent
contentControls.getContent
editor.doc.contentControls.getContent(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.replaceContent
contentControls.replaceContent
editor.doc.contentControls.replaceContent(...)| Field | Type | Req | Description |
|---|---|---|---|
content | string | ✓ | |
format | ”text” | “html” | "text", "html" | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.clearContent
contentControls.clearContent
editor.doc.contentControls.clearContent(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.appendContent
contentControls.appendContent
editor.doc.contentControls.appendContent(...)| Field | Type | Req | Description |
|---|---|---|---|
content | string | ✓ | |
format | ”text” | “html” | "text", "html" | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.prependContent
contentControls.prependContent
editor.doc.contentControls.prependContent(...)| Field | Type | Req | Description |
|---|---|---|---|
content | string | ✓ | |
format | ”text” | “html” | "text", "html" | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.insertBefore
contentControls.insertBefore
editor.doc.contentControls.insertBefore(...)| Field | Type | Req | Description |
|---|---|---|---|
content | string | ✓ | |
format | ”text” | “html” | "text", "html" | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.insertAfter
contentControls.insertAfter
editor.doc.contentControls.insertAfter(...)| Field | Type | Req | Description |
|---|---|---|---|
content | string | ✓ | |
format | ”text” | “html” | "text", "html" | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.getBinding
contentControls.getBinding
editor.doc.contentControls.getBinding(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.setBinding
contentControls.setBinding
editor.doc.contentControls.setBinding(...)| Field | Type | Req | Description |
|---|---|---|---|
prefixMappings | string | ||
storeItemId | string | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
xpath | string | ✓ |
contentControls.clearBinding
contentControls.clearBinding
editor.doc.contentControls.clearBinding(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.getRawProperties
contentControls.getRawProperties
editor.doc.contentControls.getRawProperties(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.patchRawProperties
contentControls.patchRawProperties
editor.doc.contentControls.patchRawProperties(...)| Field | Type | Req | Description |
|---|---|---|---|
patches | object[] | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.validateWordCompatibility
contentControls.validateWordCompatibility
editor.doc.contentControls.validateWordCompatibility(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.normalizeWordCompatibility
contentControls.normalizeWordCompatibility
editor.doc.contentControls.normalizeWordCompatibility(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.normalizeTagPayload
contentControls.normalizeTagPayload
editor.doc.contentControls.normalizeTagPayload(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.text.setMultiline
contentControls.text.setMultiline
editor.doc.contentControls.text.setMultiline(...)| Field | Type | Req | Description |
|---|---|---|---|
multiline | boolean | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.text.setValue
contentControls.text.setValue
editor.doc.contentControls.text.setValue(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
value | string | ✓ |
contentControls.text.clearValue
contentControls.text.clearValue
editor.doc.contentControls.text.clearValue(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.date.setValue
contentControls.date.setValue
editor.doc.contentControls.date.setValue(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
value | string | ✓ |
contentControls.date.clearValue
contentControls.date.clearValue
editor.doc.contentControls.date.clearValue(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.date.setDisplayFormat
contentControls.date.setDisplayFormat
editor.doc.contentControls.date.setDisplayFormat(...)| Field | Type | Req | Description |
|---|---|---|---|
format | string | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.date.setDisplayLocale
contentControls.date.setDisplayLocale
editor.doc.contentControls.date.setDisplayLocale(...)| Field | Type | Req | Description |
|---|---|---|---|
locale | string | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.date.setStorageFormat
contentControls.date.setStorageFormat
editor.doc.contentControls.date.setStorageFormat(...)| Field | Type | Req | Description |
|---|---|---|---|
format | string | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.date.setCalendar
contentControls.date.setCalendar
editor.doc.contentControls.date.setCalendar(...)| Field | Type | Req | Description |
|---|---|---|---|
calendar | string | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.checkbox.getState
contentControls.checkbox.getState
editor.doc.contentControls.checkbox.getState(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.checkbox.setState
contentControls.checkbox.setState
editor.doc.contentControls.checkbox.setState(...)| Field | Type | Req | Description |
|---|---|---|---|
checked | boolean | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.checkbox.toggle
contentControls.checkbox.toggle
editor.doc.contentControls.checkbox.toggle(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.checkbox.setSymbolPair
contentControls.checkbox.setSymbolPair
editor.doc.contentControls.checkbox.setSymbolPair(...)| Field | Type | Req | Description |
|---|---|---|---|
checkedSymbol | object | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
uncheckedSymbol | object | ✓ |
contentControls.choiceList.getItems
contentControls.choiceList.getItems
editor.doc.contentControls.choiceList.getItems(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.choiceList.setItems
contentControls.choiceList.setItems
editor.doc.contentControls.choiceList.setItems(...)| Field | Type | Req | Description |
|---|---|---|---|
items | object[] | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.choiceList.setSelected
contentControls.choiceList.setSelected
editor.doc.contentControls.choiceList.setSelected(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
value | string | ✓ |
contentControls.repeatingSection.listItems
contentControls.repeatingSection.listItems
editor.doc.contentControls.repeatingSection.listItems(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.repeatingSection.insertItemBefore
contentControls.repeatingSection.insertItemBefore
editor.doc.contentControls.repeatingSection.insertItemBefore(...)| Field | Type | Req | Description |
|---|---|---|---|
index | integer | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.repeatingSection.insertItemAfter
contentControls.repeatingSection.insertItemAfter
editor.doc.contentControls.repeatingSection.insertItemAfter(...)| Field | Type | Req | Description |
|---|---|---|---|
index | integer | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.repeatingSection.cloneItem
contentControls.repeatingSection.cloneItem
editor.doc.contentControls.repeatingSection.cloneItem(...)| Field | Type | Req | Description |
|---|---|---|---|
index | integer | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.repeatingSection.deleteItem
contentControls.repeatingSection.deleteItem
editor.doc.contentControls.repeatingSection.deleteItem(...)| Field | Type | Req | Description |
|---|---|---|---|
index | integer | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.repeatingSection.setAllowInsertDelete
contentControls.repeatingSection.setAllowInsertDelete
editor.doc.contentControls.repeatingSection.setAllowInsertDelete(...)| Field | Type | Req | Description |
|---|---|---|---|
allow | boolean | ✓ | |
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.group.wrap
contentControls.group.wrap
editor.doc.contentControls.group.wrap(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
contentControls.group.ungroup
contentControls.group.ungroup
editor.doc.contentControls.group.ungroup(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { nodeType: "sdt" } | ✓ | |
target.kind | ”block” | “inline” | ✓ | "block", "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "sdt" | ✓ | Constant: "sdt" |
Core (14)
Core (14)
get
get
editor.doc.get(...)| Field | Type | Req | Description |
|---|---|---|---|
options | object | ||
options.includeContext | boolean | ||
options.includeProvenance | boolean | ||
options.includeResolved | boolean |
find
find
editor.doc.find(...)| Field | Type | Req | Description |
|---|---|---|---|
in | StoryLocator | StoryLocator | |
limit | integer | ||
offset | integer | ||
options | object | ||
options.includeContext | boolean | ||
options.includeProvenance | boolean | ||
options.includeResolved | boolean | ||
select | { type: "text" } | { type: "node" } | ✓ | One of: object(type=“text”), object(type=“node”) |
within | BlockNodeAddress | BlockNodeAddress | |
within.kind | "block" | Constant: "block" | |
within.nodeId | string | ||
within.nodeType | ”paragraph” | “heading” | “listItem” | … | "paragraph", "heading", "listItem", "table", "tableRow", "tableCell", "tableOfContents", "image", "sdt" |
getNode
getNode
getNodeById
getNodeById
editor.doc.getNodeById(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ✓ | |
nodeType | ”paragraph” | “heading” | “listItem” | … | "paragraph", "heading", "listItem", "table", "tableRow", "tableCell", "tableOfContents", "image", "sdt" |
getText
getText
getMarkdown
getMarkdown
getHtml
getHtml
editor.doc.getHtml(...)| Field | Type | Req | Description |
|---|---|---|---|
in | StoryLocator | StoryLocator | |
unflattenLists | boolean |
markdownToFragment
markdownToFragment
info
info
extract
extract
clearContent
clearContent
insert
insert
replace
replace
delete
delete
Create (6)
Create (6)
create.paragraph
create.paragraph
editor.doc.create.paragraph(...)| Field | Type | Req | Description |
|---|---|---|---|
at | { kind: "documentStart" } | { kind: "documentEnd" } | { kind: "before" } | { kind: "after" } | One of: object(kind=“documentStart”), object(kind=“documentEnd”), object(kind=“before”), object(kind=“after”) | |
in | StoryLocator | StoryLocator | |
text | string |
create.heading
create.heading
editor.doc.create.heading(...)| Field | Type | Req | Description |
|---|---|---|---|
at | { kind: "documentStart" } | { kind: "documentEnd" } | { kind: "before" } | { kind: "after" } | One of: object(kind=“documentStart”), object(kind=“documentEnd”), object(kind=“before”), object(kind=“after”) | |
in | StoryLocator | StoryLocator | |
level | integer | ✓ | |
text | string |
create.sectionBreak
create.sectionBreak
editor.doc.create.sectionBreak(...)| Field | Type | Req | Description |
|---|---|---|---|
at | { kind: "documentStart" } | { kind: "documentEnd" } | { kind: "before" } | { kind: "after" } | One of: object(kind=“documentStart”), object(kind=“documentEnd”), object(kind=“before”), object(kind=“after”) | |
breakType | ”continuous” | “nextPage” | “evenPage” | … | "continuous", "nextPage", "evenPage", "oddPage" | |
headerFooterMargins | object | ||
headerFooterMargins.footer | number | ||
headerFooterMargins.header | number | ||
pageMargins | object | ||
pageMargins.bottom | number | ||
pageMargins.gutter | number | ||
pageMargins.left | number | ||
pageMargins.right | number | ||
pageMargins.top | number |
create.table
create.table
editor.doc.create.table(...)| Field | Type | Req | Description |
|---|---|---|---|
at | { kind: "documentStart" } | { kind: "documentEnd" } | { kind: "before" } | { kind: "after" } | One of: object(kind=“documentStart”), object(kind=“documentEnd”), object(kind=“before”), object(kind=“after”), object(kind=“before”), object(kind=“after”) | |
columns | integer | ✓ | |
rows | integer | ✓ |
create.tableOfContents
create.tableOfContents
editor.doc.create.tableOfContents(...)| Field | Type | Req | Description |
|---|---|---|---|
at | { kind: "documentStart" } | { kind: "documentEnd" } | { kind: "before" } | { kind: "after" } | One of: object(kind=“documentStart”), object(kind=“documentEnd”), object(kind=“before”), object(kind=“after”) | |
config | object | ||
config.hideInWebView | boolean | ||
config.hyperlinks | boolean | ||
config.includePageNumbers | boolean | ||
config.omitPageNumberLevels | object | ||
config.omitPageNumberLevels.from | integer | ||
config.omitPageNumberLevels.to | integer | ||
config.outlineLevels | object | ||
config.outlineLevels.from | integer | ||
config.outlineLevels.to | integer | ||
config.rightAlignPageNumbers | boolean | ||
config.separator | string | ||
config.tabLeader | ”none” | “dot” | “hyphen” | … | "none", "dot", "hyphen", "underscore", "middleDot" | |
config.tcFieldIdentifier | string | ||
config.tcFieldLevels | object | ||
config.tcFieldLevels.from | integer | ||
config.tcFieldLevels.to | integer | ||
config.useAppliedOutlineLevel | boolean |
create.image
create.image
editor.doc.create.image(...)| Field | Type | Req | Description |
|---|---|---|---|
alt | string | ||
at | { kind: "documentStart" } | { kind: "documentEnd" } | { kind: "before" } | … | One of: object(kind=“documentStart”), object(kind=“documentEnd”), object(kind=“before”), object(kind=“after”), object(kind=“inParagraph”) | |
in | StoryLocator | StoryLocator | |
size | object | ||
size.height | number | ||
size.width | number | ||
src | string | ✓ | |
title | string |
Cross-References (5)
Cross-References (5)
crossRefs.list
crossRefs.list
crossRefs.get
crossRefs.get
editor.doc.crossRefs.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "inline", nodeType: "crossRef" } | ✓ | |
target.anchor | InlineAnchor | ✓ | InlineAnchor |
target.anchor.end | Position | ✓ | Position |
target.anchor.end.blockId | string | ✓ | |
target.anchor.end.offset | integer | ✓ | |
target.anchor.start | Position | ✓ | Position |
target.anchor.start.blockId | string | ✓ | |
target.anchor.start.offset | integer | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeType | "crossRef" | ✓ | Constant: "crossRef" |
crossRefs.insert
crossRefs.insert
editor.doc.crossRefs.insert(...)| Field | Type | Req | Description |
|---|---|---|---|
at | TextTarget | ✓ | TextTarget |
at.kind | "text" | ✓ | Constant: "text" |
at.segments | TextSegment[] | ✓ | |
at.story | StoryLocator | StoryLocator | |
display | ”content” | “pageNumber” | “noteNumber” | … | ✓ | "content", "pageNumber", "noteNumber", "labelAndNumber", "aboveBelow", "numberOnly", "numberFullContext", "styledContent", "styledPageNumber" |
target | { kind: "bookmark" } | { kind: "heading" } | { kind: "note" } | … | ✓ | One of: object(kind=“bookmark”), object(kind=“heading”), object(kind=“note”), object(kind=“caption”), object(kind=“numberedItem”), object(kind=“styledParagraph”) |
crossRefs.rebuild
crossRefs.rebuild
editor.doc.crossRefs.rebuild(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "inline", nodeType: "crossRef" } | ✓ | |
target.anchor | InlineAnchor | ✓ | InlineAnchor |
target.anchor.end | Position | ✓ | Position |
target.anchor.end.blockId | string | ✓ | |
target.anchor.end.offset | integer | ✓ | |
target.anchor.start | Position | ✓ | Position |
target.anchor.start.blockId | string | ✓ | |
target.anchor.start.offset | integer | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeType | "crossRef" | ✓ | Constant: "crossRef" |
crossRefs.remove
crossRefs.remove
editor.doc.crossRefs.remove(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "inline", nodeType: "crossRef" } | ✓ | |
target.anchor | InlineAnchor | ✓ | InlineAnchor |
target.anchor.end | Position | ✓ | Position |
target.anchor.end.blockId | string | ✓ | |
target.anchor.end.offset | integer | ✓ | |
target.anchor.start | Position | ✓ | Position |
target.anchor.start.blockId | string | ✓ | |
target.anchor.start.offset | integer | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeType | "crossRef" | ✓ | Constant: "crossRef" |
Custom XML (5)
Custom XML (5)
customXml.parts.list
customXml.parts.list
editor.doc.customXml.parts.list(...)| Field | Type | Req | Description |
|---|---|---|---|
limit | integer | ||
offset | integer | ||
rootNamespace | string | ||
schemaRef | string |
customXml.parts.get
customXml.parts.get
editor.doc.customXml.parts.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | object | ✓ | One of: object, object |
customXml.parts.create
customXml.parts.create
editor.doc.customXml.parts.create(...)| Field | Type | Req | Description |
|---|---|---|---|
content | string | ✓ | |
schemaRefs | string[] |
customXml.parts.patch
customXml.parts.patch
editor.doc.customXml.parts.patch(...)| Field | Type | Req | Description |
|---|---|---|---|
content | string | ||
schemaRefs | string[] | ||
target | object | ✓ | One of: object, object |
customXml.parts.remove
customXml.parts.remove
editor.doc.customXml.parts.remove(...)| Field | Type | Req | Description |
|---|---|---|---|
target | object | ✓ | One of: object, object |
Diff (3)
Diff (3)
diff.capture
diff.capture
diff.compare
diff.compare
editor.doc.diff.compare(...)| Field | Type | Req | Description |
|---|---|---|---|
targetSnapshot | object | ✓ | |
targetSnapshot.coverage | { body: true } | ✓ | |
targetSnapshot.coverage.body | true | ✓ | Constant: true |
targetSnapshot.coverage.comments | boolean | ✓ | |
targetSnapshot.coverage.headerFooters | boolean | ✓ | |
targetSnapshot.coverage.numbering | boolean | ✓ | |
targetSnapshot.coverage.styles | boolean | ✓ | |
targetSnapshot.engine | ”super-editor” | ✓ | "super-editor" |
targetSnapshot.fingerprint | string | ✓ | |
targetSnapshot.payload | object | ✓ | |
targetSnapshot.version | ”sd-diff-snapshot/v1” | “sd-diff-snapshot/v2” | ✓ | "sd-diff-snapshot/v1", "sd-diff-snapshot/v2" |
diff.apply
diff.apply
editor.doc.diff.apply(...)| Field | Type | Req | Description |
|---|---|---|---|
diff | object | ✓ | |
diff.baseFingerprint | string | ✓ | |
diff.coverage | { body: true } | ✓ | |
diff.coverage.body | true | ✓ | Constant: true |
diff.coverage.comments | boolean | ✓ | |
diff.coverage.headerFooters | boolean | ✓ | |
diff.coverage.numbering | boolean | ✓ | |
diff.coverage.styles | boolean | ✓ | |
diff.engine | ”super-editor” | ✓ | "super-editor" |
diff.payload | object | ✓ | |
diff.summary | object | ✓ | |
diff.summary.body | object | ✓ | |
diff.summary.body.hasChanges | boolean | ✓ | |
diff.summary.changedComponents | ”body” | “comments” | “styles” | …[] | ✓ | |
diff.summary.comments | object | ✓ | |
diff.summary.comments.hasChanges | boolean | ✓ | |
diff.summary.hasChanges | boolean | ✓ | |
diff.summary.headerFooters | object | ✓ | |
diff.summary.headerFooters.hasChanges | boolean | ✓ | |
diff.summary.numbering | object | ✓ | |
diff.summary.numbering.hasChanges | boolean | ✓ | |
diff.summary.parts | object | ✓ | |
diff.summary.parts.hasChanges | boolean | ✓ | |
diff.summary.styles | object | ✓ | |
diff.summary.styles.hasChanges | boolean | ✓ | |
diff.targetFingerprint | string | ✓ | |
diff.version | ”sd-diff-payload/v1” | “sd-diff-payload/v2” | ✓ | "sd-diff-payload/v1", "sd-diff-payload/v2" |
Fields (5)
Fields (5)
fields.list
fields.list
fields.get
fields.get
editor.doc.fields.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "field" } | ✓ | |
target.blockId | string | ✓ | |
target.kind | "field" | ✓ | Constant: "field" |
target.nestingDepth | integer | ||
target.occurrenceIndex | integer | ✓ |
fields.insert
fields.insert
editor.doc.fields.insert(...)| Field | Type | Req | Description |
|---|---|---|---|
at | TextTarget | ✓ | TextTarget |
at.kind | "text" | ✓ | Constant: "text" |
at.segments | TextSegment[] | ✓ | |
at.story | StoryLocator | StoryLocator | |
instruction | string | ✓ | |
mode | "raw" | ✓ | Constant: "raw" |
fields.rebuild
fields.rebuild
editor.doc.fields.rebuild(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "field" } | ✓ | |
target.blockId | string | ✓ | |
target.kind | "field" | ✓ | Constant: "field" |
target.nestingDepth | integer | ||
target.occurrenceIndex | integer | ✓ |
fields.remove
fields.remove
editor.doc.fields.remove(...)| Field | Type | Req | Description |
|---|---|---|---|
mode | "raw" | ✓ | Constant: "raw" |
target | { kind: "field" } | ✓ | |
target.blockId | string | ✓ | |
target.kind | "field" | ✓ | Constant: "field" |
target.nestingDepth | integer | ||
target.occurrenceIndex | integer | ✓ |
Footnotes (6)
Footnotes (6)
footnotes.list
footnotes.list
editor.doc.footnotes.list(...)| Field | Type | Req | Description |
|---|---|---|---|
limit | integer | ||
offset | integer | ||
type | ”footnote” | “endnote” | "footnote", "endnote" |
footnotes.get
footnotes.get
editor.doc.footnotes.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "entity", entityType: "footnote" } | ✓ | |
target.entityType | "footnote" | ✓ | Constant: "footnote" |
target.kind | "entity" | ✓ | Constant: "entity" |
target.noteId | string | ✓ |
footnotes.insert
footnotes.insert
editor.doc.footnotes.insert(...)| Field | Type | Req | Description |
|---|---|---|---|
at | TextTarget | ✓ | TextTarget |
at.kind | "text" | ✓ | Constant: "text" |
at.segments | TextSegment[] | ✓ | |
at.story | StoryLocator | StoryLocator | |
content | string | ✓ | |
type | ”footnote” | “endnote” | ✓ | "footnote", "endnote" |
footnotes.update
footnotes.update
editor.doc.footnotes.update(...)| Field | Type | Req | Description |
|---|---|---|---|
patch | object | ✓ | |
patch.content | string | ||
target | { kind: "entity", entityType: "footnote" } | ✓ | |
target.entityType | "footnote" | ✓ | Constant: "footnote" |
target.kind | "entity" | ✓ | Constant: "entity" |
target.noteId | string | ✓ |
footnotes.remove
footnotes.remove
editor.doc.footnotes.remove(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "entity", entityType: "footnote" } | ✓ | |
target.entityType | "footnote" | ✓ | Constant: "footnote" |
target.kind | "entity" | ✓ | Constant: "entity" |
target.noteId | string | ✓ |
footnotes.configure
footnotes.configure
editor.doc.footnotes.configure(...)| Field | Type | Req | Description |
|---|---|---|---|
numbering | object | ||
numbering.format | ”decimal” | “lowerRoman” | “upperRoman” | … | "decimal", "lowerRoman", "upperRoman", "lowerLetter", "upperLetter", "symbol" | |
numbering.position | ”pageBottom” | “beneathText” | “sectionEnd” | … | "pageBottom", "beneathText", "sectionEnd", "documentEnd" | |
numbering.restartPolicy | ”continuous” | “eachSection” | “eachPage” | "continuous", "eachSection", "eachPage" | |
numbering.start | integer | ||
scope | { kind: "document" } | { kind: "section" } | ✓ | One of: object(kind=“document”), object(kind=“section”) |
type | ”footnote” | “endnote” | ✓ | "footnote", "endnote" |
Format (45)
Format (45)
formatRange
formatRange
format.apply
format.apply
format.bold
format.bold
format.italic
format.italic
format.strike
format.strike
format.underline
format.underline
format.highlight
format.highlight
format.color
format.color
format.fontSize
format.fontSize
format.fontFamily
format.fontFamily
format.letterSpacing
format.letterSpacing
format.vertAlign
format.vertAlign
format.position
format.position
format.dstrike
format.dstrike
format.smallCaps
format.smallCaps
format.caps
format.caps
format.shading
format.shading
format.border
format.border
format.outline
format.outline
format.shadow
format.shadow
format.emboss
format.emboss
format.imprint
format.imprint
format.charScale
format.charScale
format.kerning
format.kerning
format.vanish
format.vanish
format.webHidden
format.webHidden
format.specVanish
format.specVanish
format.rtl
format.rtl
format.cs
format.cs
format.bCs
format.bCs
format.iCs
format.iCs
format.eastAsianLayout
format.eastAsianLayout
format.em
format.em
format.fitText
format.fitText
format.snapToGrid
format.snapToGrid
format.lang
format.lang
format.oMath
format.oMath
format.rStyle
format.rStyle
format.rFonts
format.rFonts
format.fontSizeCs
format.fontSizeCs
format.ligatures
format.ligatures
format.numForm
format.numForm
format.numSpacing
format.numSpacing
format.stylisticSets
format.stylisticSets
format.contextualAlternates
format.contextualAlternates
Headers & Footers (9)
Headers & Footers (9)
History (3)
History (3)
history.get
history.get
history.undo
history.undo
history.redo
history.redo
Hyperlinks (6)
Hyperlinks (6)
hyperlinks.list
hyperlinks.list
editor.doc.hyperlinks.list(...)| Field | Type | Req | Description |
|---|---|---|---|
anchor | string | ||
hrefPattern | string | ||
limit | integer | ||
offset | integer | ||
textPattern | string | ||
within | BlockNodeAddress | BlockNodeAddress | |
within.kind | "block" | Constant: "block" | |
within.nodeId | string | ||
within.nodeType | ”paragraph” | “heading” | “listItem” | … | "paragraph", "heading", "listItem", "table", "tableRow", "tableCell", "tableOfContents", "image", "sdt" |
hyperlinks.get
hyperlinks.get
editor.doc.hyperlinks.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "inline", nodeType: "hyperlink" } | ✓ | |
target.anchor | InlineAnchor | ✓ | InlineAnchor |
target.anchor.end | Position | ✓ | Position |
target.anchor.end.blockId | string | ✓ | |
target.anchor.end.offset | integer | ✓ | |
target.anchor.start | Position | ✓ | Position |
target.anchor.start.blockId | string | ✓ | |
target.anchor.start.offset | integer | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeType | "hyperlink" | ✓ | Constant: "hyperlink" |
hyperlinks.wrap
hyperlinks.wrap
editor.doc.hyperlinks.wrap(...)| Field | Type | Req | Description |
|---|---|---|---|
link | object | ✓ | |
link.destination | object | ✓ | |
link.destination.anchor | string | ||
link.destination.docLocation | string | ||
link.destination.href | string | ||
link.rel | string | ||
link.target | string | ||
link.tooltip | string | ||
target | TextAddress | ✓ | TextAddress |
target.blockId | string | ✓ | |
target.kind | "text" | ✓ | Constant: "text" |
target.range | Range | ✓ | Range |
target.range.end | integer | ✓ | |
target.range.start | integer | ✓ |
hyperlinks.insert
hyperlinks.insert
editor.doc.hyperlinks.insert(...)| Field | Type | Req | Description |
|---|---|---|---|
link | object | ✓ | |
link.destination | object | ✓ | |
link.destination.anchor | string | ||
link.destination.docLocation | string | ||
link.destination.href | string | ||
link.rel | string | ||
link.target | string | ||
link.tooltip | string | ||
target | TextAddress | TextAddress | |
target.blockId | string | ||
target.kind | "text" | Constant: "text" | |
target.range | Range | Range | |
target.range.end | integer | ||
target.range.start | integer | ||
text | string | ✓ |
hyperlinks.patch
hyperlinks.patch
editor.doc.hyperlinks.patch(...)| Field | Type | Req | Description |
|---|---|---|---|
patch | object | ✓ | |
patch.anchor | string | null | One of: string, null | |
patch.docLocation | string | null | One of: string, null | |
patch.href | string | null | One of: string, null | |
patch.rel | string | null | One of: string, null | |
patch.target | string | null | One of: string, null | |
patch.tooltip | string | null | One of: string, null | |
target | { kind: "inline", nodeType: "hyperlink" } | ✓ | |
target.anchor | InlineAnchor | ✓ | InlineAnchor |
target.anchor.end | Position | ✓ | Position |
target.anchor.end.blockId | string | ✓ | |
target.anchor.end.offset | integer | ✓ | |
target.anchor.start | Position | ✓ | Position |
target.anchor.start.blockId | string | ✓ | |
target.anchor.start.offset | integer | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeType | "hyperlink" | ✓ | Constant: "hyperlink" |
hyperlinks.remove
hyperlinks.remove
editor.doc.hyperlinks.remove(...)| Field | Type | Req | Description |
|---|---|---|---|
mode | ”unwrap” | “deleteText” | "unwrap", "deleteText" | |
target | { kind: "inline", nodeType: "hyperlink" } | ✓ | |
target.anchor | InlineAnchor | ✓ | InlineAnchor |
target.anchor.end | Position | ✓ | Position |
target.anchor.end.blockId | string | ✓ | |
target.anchor.end.offset | integer | ✓ | |
target.anchor.start | Position | ✓ | Position |
target.anchor.start.blockId | string | ✓ | |
target.anchor.start.offset | integer | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeType | "hyperlink" | ✓ | Constant: "hyperlink" |
Images (27)
Images (27)
images.list
images.list
images.get
images.get
images.delete
images.delete
images.move
images.move
editor.doc.images.move(...)| Field | Type | Req | Description |
|---|---|---|---|
imageId | string | ✓ | |
to | { kind: "documentStart" } | { kind: "documentEnd" } | { kind: "before" } | … | ✓ | One of: object(kind=“documentStart”), object(kind=“documentEnd”), object(kind=“before”), object(kind=“after”), object(kind=“inParagraph”) |
images.convertToInline
images.convertToInline
images.convertToFloating
images.convertToFloating
images.setSize
images.setSize
editor.doc.images.setSize(...)| Field | Type | Req | Description |
|---|---|---|---|
imageId | string | ✓ | |
size | object | ✓ | |
size.height | number | ✓ | |
size.unit | ”px” | “pt” | “twip” | "px", "pt", "twip" | |
size.width | number | ✓ |
images.setWrapType
images.setWrapType
editor.doc.images.setWrapType(...)| Field | Type | Req | Description |
|---|---|---|---|
imageId | string | ✓ | |
type | ”None” | “Square” | “Through” | … | ✓ | "None", "Square", "Through", "Tight", "TopAndBottom", "Inline" |
images.setWrapSide
images.setWrapSide
editor.doc.images.setWrapSide(...)| Field | Type | Req | Description |
|---|---|---|---|
imageId | string | ✓ | |
side | ”bothSides” | “left” | “right” | … | ✓ | "bothSides", "left", "right", "largest" |
images.setWrapDistances
images.setWrapDistances
editor.doc.images.setWrapDistances(...)| Field | Type | Req | Description |
|---|---|---|---|
distances | object | ✓ | |
distances.distBottom | number | ||
distances.distLeft | number | ||
distances.distRight | number | ||
distances.distTop | number | ||
imageId | string | ✓ |
images.setPosition
images.setPosition
editor.doc.images.setPosition(...)| Field | Type | Req | Description |
|---|---|---|---|
imageId | string | ✓ | |
position | object | ✓ | |
position.alignH | string | ||
position.alignV | string | ||
position.hRelativeFrom | string | ||
position.marginOffset | object | ||
position.marginOffset.horizontal | number | ||
position.marginOffset.top | number | ||
position.vRelativeFrom | string |
images.setAnchorOptions
images.setAnchorOptions
editor.doc.images.setAnchorOptions(...)| Field | Type | Req | Description |
|---|---|---|---|
imageId | string | ✓ | |
options | object | ✓ | |
options.allowOverlap | boolean | ||
options.behindDoc | boolean | ||
options.layoutInCell | boolean | ||
options.lockAnchor | boolean | ||
options.simplePos | boolean |
images.setZOrder
images.setZOrder
editor.doc.images.setZOrder(...)| Field | Type | Req | Description |
|---|---|---|---|
imageId | string | ✓ | |
zOrder | object | ✓ | |
zOrder.relativeHeight | integer | ✓ |
images.scale
images.scale
images.setLockAspectRatio
images.setLockAspectRatio
editor.doc.images.setLockAspectRatio(...)| Field | Type | Req | Description |
|---|---|---|---|
imageId | string | ✓ | |
locked | boolean | ✓ |
images.rotate
images.rotate
images.flip
images.flip
editor.doc.images.flip(...)| Field | Type | Req | Description |
|---|---|---|---|
horizontal | boolean | ||
imageId | string | ✓ | |
vertical | boolean |
images.crop
images.crop
editor.doc.images.crop(...)| Field | Type | Req | Description |
|---|---|---|---|
crop | object | ✓ | |
crop.bottom | number | ||
crop.left | number | ||
crop.right | number | ||
crop.top | number | ||
imageId | string | ✓ |
images.resetCrop
images.resetCrop
images.replaceSource
images.replaceSource
editor.doc.images.replaceSource(...)| Field | Type | Req | Description |
|---|---|---|---|
imageId | string | ✓ | |
resetSize | boolean | ||
src | string | ✓ |
images.setAltText
images.setAltText
editor.doc.images.setAltText(...)| Field | Type | Req | Description |
|---|---|---|---|
description | string | ✓ | |
imageId | string | ✓ |
images.setDecorative
images.setDecorative
editor.doc.images.setDecorative(...)| Field | Type | Req | Description |
|---|---|---|---|
decorative | boolean | ✓ | |
imageId | string | ✓ |
images.setName
images.setName
images.setHyperlink
images.setHyperlink
editor.doc.images.setHyperlink(...)| Field | Type | Req | Description |
|---|---|---|---|
imageId | string | ✓ | |
tooltip | string | ||
url | string | null | ✓ |
images.insertCaption
images.insertCaption
editor.doc.images.insertCaption(...)| Field | Type | Req | Description |
|---|---|---|---|
imageId | string | ✓ | |
text | string | ✓ |
images.updateCaption
images.updateCaption
editor.doc.images.updateCaption(...)| Field | Type | Req | Description |
|---|---|---|---|
imageId | string | ✓ | |
text | string | ✓ |
images.removeCaption
images.removeCaption
Index (11)
Index (11)
index.list
index.list
index.get
index.get
editor.doc.index.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "index" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "index" | ✓ | Constant: "index" |
index.insert
index.insert
editor.doc.index.insert(...)| Field | Type | Req | Description |
|---|---|---|---|
at | { kind: "documentStart" } | { kind: "documentEnd" } | { kind: "before" } | { kind: "after" } | ✓ | One of: object(kind=“documentStart”), object(kind=“documentEnd”), object(kind=“before”), object(kind=“after”) |
config | object | ||
config.accentedSorting | boolean | ||
config.columns | integer | ||
config.entryPageSeparator | string | ||
config.entryTypeFilter | string | ||
config.headingSeparator | string | ||
config.letterRange | object | ||
config.letterRange.from | string | ||
config.letterRange.to | string | ||
config.pageRangeBookmark | string | ||
config.pageRangeSeparator | string | ||
config.runIn | boolean | ||
config.sequenceId | string |
index.configure
index.configure
editor.doc.index.configure(...)| Field | Type | Req | Description |
|---|---|---|---|
patch | object | ✓ | |
patch.accentedSorting | boolean | ||
patch.columns | integer | ||
patch.entryPageSeparator | string | ||
patch.entryTypeFilter | string | ||
patch.headingSeparator | string | ||
patch.letterRange | object | ||
patch.letterRange.from | string | ||
patch.letterRange.to | string | ||
patch.pageRangeBookmark | string | ||
patch.pageRangeSeparator | string | ||
patch.runIn | boolean | ||
patch.sequenceId | string | ||
target | { kind: "block", nodeType: "index" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "index" | ✓ | Constant: "index" |
index.rebuild
index.rebuild
editor.doc.index.rebuild(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "index" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "index" | ✓ | Constant: "index" |
index.remove
index.remove
editor.doc.index.remove(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "index" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "index" | ✓ | Constant: "index" |
index.entries.list
index.entries.list
editor.doc.index.entries.list(...)| Field | Type | Req | Description |
|---|---|---|---|
entryType | string | ||
limit | integer | ||
offset | integer |
index.entries.get
index.entries.get
editor.doc.index.entries.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "inline", nodeType: "indexEntry" } | ✓ | |
target.anchor | InlineAnchor | ✓ | InlineAnchor |
target.anchor.end | Position | ✓ | Position |
target.anchor.end.blockId | string | ✓ | |
target.anchor.end.offset | integer | ✓ | |
target.anchor.start | Position | ✓ | Position |
target.anchor.start.blockId | string | ✓ | |
target.anchor.start.offset | integer | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeType | "indexEntry" | ✓ | Constant: "indexEntry" |
index.entries.insert
index.entries.insert
editor.doc.index.entries.insert(...)| Field | Type | Req | Description |
|---|---|---|---|
at | TextTarget | ✓ | TextTarget |
at.kind | "text" | ✓ | Constant: "text" |
at.segments | TextSegment[] | ✓ | |
at.story | StoryLocator | StoryLocator | |
entry | object | ✓ | |
entry.bold | boolean | ||
entry.crossReference | string | ||
entry.entryType | string | ||
entry.italic | boolean | ||
entry.pageRangeBookmark | string | ||
entry.subEntry | string | ||
entry.text | string | ✓ | |
entry.yomi | string |
index.entries.update
index.entries.update
editor.doc.index.entries.update(...)| Field | Type | Req | Description |
|---|---|---|---|
patch | object | ✓ | |
patch.bold | boolean | ||
patch.crossReference | string | ||
patch.entryType | string | ||
patch.italic | boolean | ||
patch.pageRangeBookmark | string | ||
patch.subEntry | string | ||
patch.text | string | ||
patch.yomi | string | ||
target | { kind: "inline", nodeType: "indexEntry" } | ✓ | |
target.anchor | InlineAnchor | ✓ | InlineAnchor |
target.anchor.end | Position | ✓ | Position |
target.anchor.end.blockId | string | ✓ | |
target.anchor.end.offset | integer | ✓ | |
target.anchor.start | Position | ✓ | Position |
target.anchor.start.blockId | string | ✓ | |
target.anchor.start.offset | integer | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeType | "indexEntry" | ✓ | Constant: "indexEntry" |
index.entries.remove
index.entries.remove
editor.doc.index.entries.remove(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "inline", nodeType: "indexEntry" } | ✓ | |
target.anchor | InlineAnchor | ✓ | InlineAnchor |
target.anchor.end | Position | ✓ | Position |
target.anchor.end.blockId | string | ✓ | |
target.anchor.end.offset | integer | ✓ | |
target.anchor.start | Position | ✓ | Position |
target.anchor.start.blockId | string | ✓ | |
target.anchor.start.offset | integer | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeType | "indexEntry" | ✓ | Constant: "indexEntry" |
Lists (39)
Lists (39)
lists.list
lists.list
editor.doc.lists.list(...)| Field | Type | Req | Description |
|---|---|---|---|
kind | ”ordered” | “bullet” | "ordered", "bullet" | |
level | integer | ||
limit | integer | ||
offset | integer | ||
ordinal | integer | ||
within | BlockNodeAddress | BlockNodeAddress | |
within.kind | "block" | Constant: "block" | |
within.nodeId | string | ||
within.nodeType | ”paragraph” | “heading” | “listItem” | … | "paragraph", "heading", "listItem", "table", "tableRow", "tableCell", "tableOfContents", "image", "sdt" |
lists.get
lists.get
editor.doc.lists.get(...)| Field | Type | Req | Description |
|---|---|---|---|
address | ListItemAddress | ✓ | ListItemAddress |
address.kind | "block" | ✓ | Constant: "block" |
address.nodeId | string | ✓ | |
address.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.insert
lists.insert
editor.doc.lists.insert(...)| Field | Type | Req | Description |
|---|---|---|---|
position | ”before” | “after” | ✓ | "before", "after" |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
text | string |
lists.create
lists.create
lists.attach
lists.attach
editor.doc.lists.attach(...)| Field | Type | Req | Description |
|---|---|---|---|
attachTo | ListItemAddress | ✓ | ListItemAddress |
attachTo.kind | "block" | ✓ | Constant: "block" |
attachTo.nodeId | string | ✓ | |
attachTo.nodeType | "listItem" | ✓ | Constant: "listItem" |
level | integer | ||
target | BlockAddressOrRange | ✓ | BlockAddressOrRange |
lists.detach
lists.detach
editor.doc.lists.detach(...)| Field | Type | Req | Description |
|---|---|---|---|
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.delete
lists.delete
editor.doc.lists.delete(...)| Field | Type | Req | Description |
|---|---|---|---|
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.indent
lists.indent
editor.doc.lists.indent(...)| Field | Type | Req | Description |
|---|---|---|---|
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.outdent
lists.outdent
editor.doc.lists.outdent(...)| Field | Type | Req | Description |
|---|---|---|---|
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.join
lists.join
editor.doc.lists.join(...)| Field | Type | Req | Description |
|---|---|---|---|
direction | ”withPrevious” | “withNext” | ✓ | "withPrevious", "withNext" |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.canJoin
lists.canJoin
editor.doc.lists.canJoin(...)| Field | Type | Req | Description |
|---|---|---|---|
direction | ”withPrevious” | “withNext” | ✓ | "withPrevious", "withNext" |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.separate
lists.separate
editor.doc.lists.separate(...)| Field | Type | Req | Description |
|---|---|---|---|
copyOverrides | boolean | ||
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.merge
lists.merge
editor.doc.lists.merge(...)| Field | Type | Req | Description |
|---|---|---|---|
direction | ”withPrevious” | “withNext” | ✓ | "withPrevious", "withNext" |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.split
lists.split
editor.doc.lists.split(...)| Field | Type | Req | Description |
|---|---|---|---|
restartNumbering | boolean | ||
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.setLevel
lists.setLevel
editor.doc.lists.setLevel(...)| Field | Type | Req | Description |
|---|---|---|---|
level | integer | ✓ | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.setValue
lists.setValue
editor.doc.lists.setValue(...)| Field | Type | Req | Description |
|---|---|---|---|
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
value | integer | null | ✓ |
lists.continuePrevious
lists.continuePrevious
editor.doc.lists.continuePrevious(...)| Field | Type | Req | Description |
|---|---|---|---|
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.canContinuePrevious
lists.canContinuePrevious
editor.doc.lists.canContinuePrevious(...)| Field | Type | Req | Description |
|---|---|---|---|
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.setLevelRestart
lists.setLevelRestart
editor.doc.lists.setLevelRestart(...)| Field | Type | Req | Description |
|---|---|---|---|
level | integer | ✓ | |
restartAfterLevel | integer | null | ✓ | |
scope | ”definition” | “instance” | "definition", "instance" | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.convertToText
lists.convertToText
editor.doc.lists.convertToText(...)| Field | Type | Req | Description |
|---|---|---|---|
includeMarker | boolean | ||
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.applyTemplate
lists.applyTemplate
editor.doc.lists.applyTemplate(...)| Field | Type | Req | Description |
|---|---|---|---|
levels | integer[] | ||
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
template | { version: 1 } | ✓ | |
template.levels | object[] | ✓ | |
template.version | 1 | ✓ | Constant: 1 |
lists.applyPreset
lists.applyPreset
editor.doc.lists.applyPreset(...)| Field | Type | Req | Description |
|---|---|---|---|
levels | integer[] | ||
preset | ”decimal” | “decimalParenthesis” | “lowerLetter” | … | ✓ | "decimal", "decimalParenthesis", "lowerLetter", "upperLetter", "lowerRoman", "upperRoman", "disc", "circle", "square", "dash" |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.setType
lists.setType
editor.doc.lists.setType(...)| Field | Type | Req | Description |
|---|---|---|---|
continuity | ”preserve” | “none” | "preserve", "none" | |
kind | ”ordered” | “bullet” | ✓ | "ordered", "bullet" |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.captureTemplate
lists.captureTemplate
editor.doc.lists.captureTemplate(...)| Field | Type | Req | Description |
|---|---|---|---|
levels | integer[] | ||
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.setLevelNumbering
lists.setLevelNumbering
editor.doc.lists.setLevelNumbering(...)| Field | Type | Req | Description |
|---|---|---|---|
level | integer | ✓ | |
lvlText | string | ✓ | |
numFmt | string | ✓ | |
start | integer | ||
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.setLevelBullet
lists.setLevelBullet
editor.doc.lists.setLevelBullet(...)| Field | Type | Req | Description |
|---|---|---|---|
level | integer | ✓ | |
markerText | string | ✓ | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.setLevelPictureBullet
lists.setLevelPictureBullet
editor.doc.lists.setLevelPictureBullet(...)| Field | Type | Req | Description |
|---|---|---|---|
level | integer | ✓ | |
pictureBulletId | integer | ✓ | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.setLevelAlignment
lists.setLevelAlignment
editor.doc.lists.setLevelAlignment(...)| Field | Type | Req | Description |
|---|---|---|---|
alignment | ”left” | “center” | “right” | ✓ | "left", "center", "right" |
level | integer | ✓ | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.setLevelIndents
lists.setLevelIndents
editor.doc.lists.setLevelIndents(...)| Field | Type | Req | Description |
|---|---|---|---|
firstLine | integer | ||
hanging | integer | ||
left | integer | ||
level | integer | ✓ | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.setLevelTrailingCharacter
lists.setLevelTrailingCharacter
editor.doc.lists.setLevelTrailingCharacter(...)| Field | Type | Req | Description |
|---|---|---|---|
level | integer | ✓ | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
trailingCharacter | ”tab” | “space” | “nothing” | ✓ | "tab", "space", "nothing" |
lists.setLevelMarkerFont
lists.setLevelMarkerFont
editor.doc.lists.setLevelMarkerFont(...)| Field | Type | Req | Description |
|---|---|---|---|
fontFamily | string | ✓ | |
level | integer | ✓ | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.clearLevelOverrides
lists.clearLevelOverrides
editor.doc.lists.clearLevelOverrides(...)| Field | Type | Req | Description |
|---|---|---|---|
level | integer | ✓ | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.getStyle
lists.getStyle
editor.doc.lists.getStyle(...)| Field | Type | Req | Description |
|---|---|---|---|
levels | integer[] | ||
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.applyStyle
lists.applyStyle
editor.doc.lists.applyStyle(...)| Field | Type | Req | Description |
|---|---|---|---|
levels | integer[] | ||
style | { version: 1 } | ✓ | |
style.levels | object[] | ✓ | |
style.version | 1 | ✓ | Constant: 1 |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.restartAt
lists.restartAt
editor.doc.lists.restartAt(...)| Field | Type | Req | Description |
|---|---|---|---|
startAt | integer | ✓ | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.setLevelNumberStyle
lists.setLevelNumberStyle
editor.doc.lists.setLevelNumberStyle(...)| Field | Type | Req | Description |
|---|---|---|---|
level | integer | ✓ | |
numberStyle | string | ✓ | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.setLevelText
lists.setLevelText
editor.doc.lists.setLevelText(...)| Field | Type | Req | Description |
|---|---|---|---|
level | integer | ✓ | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
text | string | ✓ |
lists.setLevelStart
lists.setLevelStart
editor.doc.lists.setLevelStart(...)| Field | Type | Req | Description |
|---|---|---|---|
level | integer | ✓ | |
startAt | integer | ✓ | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
lists.setLevelLayout
lists.setLevelLayout
editor.doc.lists.setLevelLayout(...)| Field | Type | Req | Description |
|---|---|---|---|
layout | object | ✓ | |
layout.alignedAt | integer | ||
layout.alignment | ”left” | “center” | “right” | "left", "center", "right" | |
layout.followCharacter | ”tab” | “space” | “nothing” | "tab", "space", "nothing" | |
layout.tabStopAt | integer | null | ||
layout.textIndentAt | integer | ||
level | integer | ✓ | |
target | ListItemAddress | ✓ | ListItemAddress |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "listItem" | ✓ | Constant: "listItem" |
Mutations (2)
Mutations (2)
mutations.preview
mutations.preview
editor.doc.mutations.preview(...)| Field | Type | Req | Description |
|---|---|---|---|
atomic | true | ✓ | Constant: true |
changeMode | ”direct” | “tracked” | ✓ | "direct", "tracked" |
expectedRevision | string | ||
in | StoryLocator | StoryLocator | |
steps | { op: "text.rewrite" } | { op: "text.insert" } | { op: "text.delete" } | …[] | ✓ |
mutations.apply
mutations.apply
editor.doc.mutations.apply(...)| Field | Type | Req | Description |
|---|---|---|---|
atomic | true | ✓ | Constant: true |
changeMode | ”direct” | “tracked” | ✓ | "direct", "tracked" |
expectedRevision | string | ||
in | StoryLocator | StoryLocator | |
steps | { op: "text.rewrite" } | { op: "text.insert" } | { op: "text.delete" } | …[] | ✓ |
Paragraph Formatting (19)
Paragraph Formatting (19)
format.paragraph.resetDirectFormatting
format.paragraph.resetDirectFormatting
editor.doc.format.paragraph.resetDirectFormatting(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.setAlignment
format.paragraph.setAlignment
editor.doc.format.paragraph.setAlignment(...)| Field | Type | Req | Description |
|---|---|---|---|
alignment | ”left” | “center” | “right” | … | ✓ | "left", "center", "right", "justify" |
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.clearAlignment
format.paragraph.clearAlignment
editor.doc.format.paragraph.clearAlignment(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.setIndentation
format.paragraph.setIndentation
editor.doc.format.paragraph.setIndentation(...)| Field | Type | Req | Description |
|---|---|---|---|
firstLine | integer | ||
hanging | integer | ||
left | integer | ||
right | integer | ||
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.clearIndentation
format.paragraph.clearIndentation
editor.doc.format.paragraph.clearIndentation(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.setSpacing
format.paragraph.setSpacing
editor.doc.format.paragraph.setSpacing(...)| Field | Type | Req | Description |
|---|---|---|---|
after | integer | ||
before | integer | ||
line | integer | ||
lineRule | ”auto” | “exact” | “atLeast” | "auto", "exact", "atLeast" | |
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.clearSpacing
format.paragraph.clearSpacing
editor.doc.format.paragraph.clearSpacing(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.setKeepOptions
format.paragraph.setKeepOptions
editor.doc.format.paragraph.setKeepOptions(...)| Field | Type | Req | Description |
|---|---|---|---|
keepLines | boolean | ||
keepNext | boolean | ||
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
widowControl | boolean |
format.paragraph.setOutlineLevel
format.paragraph.setOutlineLevel
editor.doc.format.paragraph.setOutlineLevel(...)| Field | Type | Req | Description |
|---|---|---|---|
outlineLevel | integer | null | ✓ | One of: integer, null |
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.setFlowOptions
format.paragraph.setFlowOptions
editor.doc.format.paragraph.setFlowOptions(...)| Field | Type | Req | Description |
|---|---|---|---|
contextualSpacing | boolean | ||
pageBreakBefore | boolean | ||
suppressAutoHyphens | boolean | ||
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.setTabStop
format.paragraph.setTabStop
editor.doc.format.paragraph.setTabStop(...)| Field | Type | Req | Description |
|---|---|---|---|
alignment | ”left” | “center” | “right” | … | ✓ | "left", "center", "right", "decimal", "bar" |
leader | ”none” | “dot” | “hyphen” | … | "none", "dot", "hyphen", "underscore", "heavy", "middleDot" | |
position | integer | ✓ | |
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.clearTabStop
format.paragraph.clearTabStop
editor.doc.format.paragraph.clearTabStop(...)| Field | Type | Req | Description |
|---|---|---|---|
position | integer | ✓ | |
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.clearAllTabStops
format.paragraph.clearAllTabStops
editor.doc.format.paragraph.clearAllTabStops(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.setBorder
format.paragraph.setBorder
editor.doc.format.paragraph.setBorder(...)| Field | Type | Req | Description |
|---|---|---|---|
color | string | ||
side | ”top” | “bottom” | “left” | … | ✓ | "top", "bottom", "left", "right", "between", "bar" |
size | integer | ||
space | integer | ||
style | string | ✓ | |
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.clearBorder
format.paragraph.clearBorder
editor.doc.format.paragraph.clearBorder(...)| Field | Type | Req | Description |
|---|---|---|---|
side | ”top” | “bottom” | “left” | … | ✓ | "top", "bottom", "left", "right", "between", "bar", "all" |
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.setShading
format.paragraph.setShading
editor.doc.format.paragraph.setShading(...)| Field | Type | Req | Description |
|---|---|---|---|
color | string | ||
fill | string | ||
pattern | string | ||
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.clearShading
format.paragraph.clearShading
editor.doc.format.paragraph.clearShading(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.setDirection
format.paragraph.setDirection
editor.doc.format.paragraph.setDirection(...)| Field | Type | Req | Description |
|---|---|---|---|
alignmentPolicy | ”preserve” | “matchDirection” | "preserve", "matchDirection" | |
direction | ”ltr” | “rtl” | ✓ | "ltr", "rtl" |
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
format.paragraph.clearDirection
format.paragraph.clearDirection
editor.doc.format.paragraph.clearDirection(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
Paragraph Styles (2)
Paragraph Styles (2)
styles.paragraph.setStyle
styles.paragraph.setStyle
editor.doc.styles.paragraph.setStyle(...)| Field | Type | Req | Description |
|---|---|---|---|
styleId | string | ✓ | |
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
styles.paragraph.clearStyle
styles.paragraph.clearStyle
editor.doc.styles.paragraph.clearStyle(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "paragraph" } | { kind: "block", nodeType: "heading" } | { kind: "block", nodeType: "listItem" } | ✓ | One of: ParagraphAddress, HeadingAddress, ListItemAddress |
Permission Ranges (5)
Permission Ranges (5)
permissionRanges.list
permissionRanges.list
editor.doc.permissionRanges.list(...)| Field | Type | Req | Description |
|---|---|---|---|
limit | integer | ||
offset | integer |
permissionRanges.get
permissionRanges.get
permissionRanges.create
permissionRanges.create
editor.doc.permissionRanges.create(...)| Field | Type | Req | Description |
|---|---|---|---|
id | string | ||
principal | object | ✓ | |
principal.id | string | ||
principal.kind | ”everyone” | “editor” | ✓ | "everyone", "editor" |
target | SelectionTarget | ✓ | SelectionTarget |
target.end | SelectionPoint | ✓ | SelectionPoint |
target.kind | "selection" | ✓ | Constant: "selection" |
target.start | SelectionPoint | ✓ | SelectionPoint |
permissionRanges.remove
permissionRanges.remove
permissionRanges.updatePrincipal
permissionRanges.updatePrincipal
editor.doc.permissionRanges.updatePrincipal(...)| Field | Type | Req | Description |
|---|---|---|---|
id | string | ✓ | |
principal | object | ✓ | |
principal.id | string | ||
principal.kind | ”everyone” | “editor” | ✓ | "everyone", "editor" |
Protection (3)
Protection (3)
protection.get
protection.get
protection.setEditingRestriction
protection.setEditingRestriction
editor.doc.protection.setEditingRestriction(...)| Field | Type | Req | Description |
|---|---|---|---|
formattingRestricted | boolean | ||
mode | ”readOnly” | ✓ | "readOnly" |
protection.clearEditingRestriction
protection.clearEditingRestriction
Query (1)
Query (1)
query.match
query.match
editor.doc.query.match(...)| Field | Type | Req | Description |
|---|---|---|---|
in | StoryLocator | StoryLocator | |
includeNodes | boolean | ||
limit | integer | ||
mode | ”strict” | “candidates” | "strict", "candidates" | |
offset | integer | ||
require | ”any” | “first” | “exactlyOne” | … | "any", "first", "exactlyOne", "all" | |
select | { type: "text" } | { type: "node" } | ✓ | One of: object(type=“text”), object(type=“node”) |
within | BlockNodeAddress | BlockNodeAddress | |
within.kind | "block" | Constant: "block" | |
within.nodeId | string | ||
within.nodeType | ”paragraph” | “heading” | “listItem” | … | "paragraph", "heading", "listItem", "table", "tableRow", "tableCell", "tableOfContents", "image", "sdt" |
Ranges (1)
Ranges (1)
ranges.resolve
ranges.resolve
editor.doc.ranges.resolve(...)| Field | Type | Req | Description |
|---|---|---|---|
end | { kind: "document" } | { kind: "point" } | { kind: "ref" } | ✓ | One of: object(kind=“document”), object(kind=“point”), object(kind=“ref”) |
expectedRevision | string | ||
start | { kind: "document" } | { kind: "point" } | { kind: "ref" } | ✓ | One of: object(kind=“document”), object(kind=“point”), object(kind=“ref”) |
Sections (18)
Sections (18)
sections.list
sections.list
sections.get
sections.get
editor.doc.sections.get(...)| Field | Type | Req | Description |
|---|---|---|---|
address | SectionAddress | ✓ | SectionAddress |
address.kind | "section" | ✓ | Constant: "section" |
address.sectionId | string | ✓ |
sections.setBreakType
sections.setBreakType
editor.doc.sections.setBreakType(...)| Field | Type | Req | Description |
|---|---|---|---|
breakType | ”continuous” | “nextPage” | “evenPage” | … | ✓ | "continuous", "nextPage", "evenPage", "oddPage" |
target | SectionAddress | ✓ | SectionAddress |
target.kind | "section" | ✓ | Constant: "section" |
target.sectionId | string | ✓ |
sections.setPageMargins
sections.setPageMargins
editor.doc.sections.setPageMargins(...)| Field | Type | Req | Description |
|---|---|---|---|
bottom | number | ||
gutter | number | ||
left | number | ||
right | number | ||
target | SectionAddress | ✓ | SectionAddress |
target.kind | "section" | ✓ | Constant: "section" |
target.sectionId | string | ✓ | |
top | number |
sections.setHeaderFooterMargins
sections.setHeaderFooterMargins
sections.setPageSetup
sections.setPageSetup
editor.doc.sections.setPageSetup(...)| Field | Type | Req | Description |
|---|---|---|---|
height | number | ||
orientation | ”portrait” | “landscape” | "portrait", "landscape" | |
paperSize | string | ||
target | SectionAddress | ✓ | SectionAddress |
target.kind | "section" | ✓ | Constant: "section" |
target.sectionId | string | ✓ | |
width | number |
sections.setColumns
sections.setColumns
editor.doc.sections.setColumns(...)| Field | Type | Req | Description |
|---|---|---|---|
count | integer | ||
equalWidth | boolean | ||
gap | number | ||
target | SectionAddress | ✓ | SectionAddress |
target.kind | "section" | ✓ | Constant: "section" |
target.sectionId | string | ✓ |
sections.setLineNumbering
sections.setLineNumbering
editor.doc.sections.setLineNumbering(...)| Field | Type | Req | Description |
|---|---|---|---|
countBy | integer | ||
distance | number | ||
enabled | boolean | ✓ | |
restart | ”continuous” | “newPage” | “newSection” | "continuous", "newPage", "newSection" | |
start | integer | ||
target | SectionAddress | ✓ | SectionAddress |
target.kind | "section" | ✓ | Constant: "section" |
target.sectionId | string | ✓ |
sections.setPageNumbering
sections.setPageNumbering
editor.doc.sections.setPageNumbering(...)| Field | Type | Req | Description |
|---|---|---|---|
chapterSeparator | ”hyphen” | “period” | “colon” | … | "hyphen", "period", "colon", "emDash", "enDash" | |
chapterStyle | integer | ||
format | ”decimal” | “lowerLetter” | “upperLetter” | … | "decimal", "lowerLetter", "upperLetter", "lowerRoman", "upperRoman", "numberInDash" | |
start | integer | ||
target | SectionAddress | ✓ | SectionAddress |
target.kind | "section" | ✓ | Constant: "section" |
target.sectionId | string | ✓ |
sections.setTitlePage
sections.setTitlePage
editor.doc.sections.setTitlePage(...)| Field | Type | Req | Description |
|---|---|---|---|
enabled | boolean | ✓ | |
target | SectionAddress | ✓ | SectionAddress |
target.kind | "section" | ✓ | Constant: "section" |
target.sectionId | string | ✓ |
sections.setOddEvenHeadersFooters
sections.setOddEvenHeadersFooters
sections.setVerticalAlign
sections.setVerticalAlign
editor.doc.sections.setVerticalAlign(...)| Field | Type | Req | Description |
|---|---|---|---|
target | SectionAddress | ✓ | SectionAddress |
target.kind | "section" | ✓ | Constant: "section" |
target.sectionId | string | ✓ | |
value | ”top” | “center” | “bottom” | … | ✓ | "top", "center", "bottom", "both" |
sections.setSectionDirection
sections.setSectionDirection
editor.doc.sections.setSectionDirection(...)| Field | Type | Req | Description |
|---|---|---|---|
direction | ”ltr” | “rtl” | ✓ | "ltr", "rtl" |
target | SectionAddress | ✓ | SectionAddress |
target.kind | "section" | ✓ | Constant: "section" |
target.sectionId | string | ✓ |
sections.setHeaderFooterRef
sections.setHeaderFooterRef
sections.clearHeaderFooterRef
sections.clearHeaderFooterRef
sections.setLinkToPrevious
sections.setLinkToPrevious
editor.doc.sections.setLinkToPrevious(...)| Field | Type | Req | Description |
|---|---|---|---|
kind | ”header” | “footer” | ✓ | "header", "footer" |
linked | boolean | ✓ | |
target | SectionAddress | ✓ | SectionAddress |
target.kind | "section" | ✓ | Constant: "section" |
target.sectionId | string | ✓ | |
variant | ”default” | “first” | “even” | ✓ | "default", "first", "even" |
sections.setPageBorders
sections.setPageBorders
editor.doc.sections.setPageBorders(...)| Field | Type | Req | Description |
|---|---|---|---|
borders | any | ✓ | One of: any, any, any, any, any, any, any |
borders.bottom | any | One of: any, any, any, any, any, any | |
borders.bottom.color | string | ||
borders.bottom.frame | boolean | ||
borders.bottom.shadow | boolean | ||
borders.bottom.size | number | ||
borders.bottom.space | number | ||
borders.bottom.style | string | ||
borders.display | ”allPages” | “firstPage” | “notFirstPage” | "allPages", "firstPage", "notFirstPage" | |
borders.left | any | One of: any, any, any, any, any, any | |
borders.left.color | string | ||
borders.left.frame | boolean | ||
borders.left.shadow | boolean | ||
borders.left.size | number | ||
borders.left.space | number | ||
borders.left.style | string | ||
borders.offsetFrom | ”page” | “text” | "page", "text" | |
borders.right | any | One of: any, any, any, any, any, any | |
borders.right.color | string | ||
borders.right.frame | boolean | ||
borders.right.shadow | boolean | ||
borders.right.size | number | ||
borders.right.space | number | ||
borders.right.style | string | ||
borders.top | any | One of: any, any, any, any, any, any | |
borders.top.color | string | ||
borders.top.frame | boolean | ||
borders.top.shadow | boolean | ||
borders.top.size | number | ||
borders.top.space | number | ||
borders.top.style | string | ||
borders.zOrder | ”front” | “back” | "front", "back" | |
target | SectionAddress | ✓ | SectionAddress |
target.kind | "section" | ✓ | Constant: "section" |
target.sectionId | string | ✓ |
sections.clearPageBorders
sections.clearPageBorders
editor.doc.sections.clearPageBorders(...)| Field | Type | Req | Description |
|---|---|---|---|
target | SectionAddress | ✓ | SectionAddress |
target.kind | "section" | ✓ | Constant: "section" |
target.sectionId | string | ✓ |
Selection (1)
Selection (1)
selection.current
selection.current
Styles (1)
Styles (1)
styles.apply
styles.apply
Table of Authorities (11)
Table of Authorities (11)
Table of Contents (10)
Table of Contents (10)
toc.list
toc.list
toc.get
toc.get
editor.doc.toc.get(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "tableOfContents" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "tableOfContents" | ✓ | Constant: "tableOfContents" |
toc.configure
toc.configure
editor.doc.toc.configure(...)| Field | Type | Req | Description |
|---|---|---|---|
patch | object | ✓ | |
patch.hideInWebView | boolean | ||
patch.hyperlinks | boolean | ||
patch.includePageNumbers | boolean | ||
patch.omitPageNumberLevels | object | ||
patch.omitPageNumberLevels.from | integer | ||
patch.omitPageNumberLevels.to | integer | ||
patch.outlineLevels | object | ||
patch.outlineLevels.from | integer | ||
patch.outlineLevels.to | integer | ||
patch.rightAlignPageNumbers | boolean | ||
patch.separator | string | ||
patch.tabLeader | ”none” | “dot” | “hyphen” | … | "none", "dot", "hyphen", "underscore", "middleDot" | |
patch.tcFieldIdentifier | string | ||
patch.tcFieldLevels | object | ||
patch.tcFieldLevels.from | integer | ||
patch.tcFieldLevels.to | integer | ||
patch.useAppliedOutlineLevel | boolean | ||
target | { kind: "block", nodeType: "tableOfContents" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "tableOfContents" | ✓ | Constant: "tableOfContents" |
toc.update
toc.update
editor.doc.toc.update(...)| Field | Type | Req | Description |
|---|---|---|---|
mode | ”all” | “pageNumbers” | "all", "pageNumbers" | |
target | { kind: "block", nodeType: "tableOfContents" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "tableOfContents" | ✓ | Constant: "tableOfContents" |
toc.remove
toc.remove
editor.doc.toc.remove(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "block", nodeType: "tableOfContents" } | ✓ | |
target.kind | "block" | ✓ | Constant: "block" |
target.nodeId | string | ✓ | |
target.nodeType | "tableOfContents" | ✓ | Constant: "tableOfContents" |
toc.markEntry
toc.markEntry
editor.doc.toc.markEntry(...)| Field | Type | Req | Description |
|---|---|---|---|
level | integer | ||
omitPageNumber | boolean | ||
tableIdentifier | string | ||
target | { kind: "inline-insert" } | ✓ | |
target.anchor | { nodeType: "paragraph" } | ✓ | |
target.anchor.nodeId | string | ✓ | |
target.anchor.nodeType | "paragraph" | ✓ | Constant: "paragraph" |
target.kind | "inline-insert" | ✓ | Constant: "inline-insert" |
target.position | ”start” | “end” | "start", "end" | |
text | string | ✓ |
toc.unmarkEntry
toc.unmarkEntry
editor.doc.toc.unmarkEntry(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "inline", nodeType: "tableOfContentsEntry" } | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "tableOfContentsEntry" | ✓ | Constant: "tableOfContentsEntry" |
toc.listEntries
toc.listEntries
editor.doc.toc.listEntries(...)| Field | Type | Req | Description |
|---|---|---|---|
levelRange | object | ||
levelRange.from | integer | ||
levelRange.to | integer | ||
limit | integer | ||
offset | integer | ||
tableIdentifier | string |
toc.getEntry
toc.getEntry
editor.doc.toc.getEntry(...)| Field | Type | Req | Description |
|---|---|---|---|
target | { kind: "inline", nodeType: "tableOfContentsEntry" } | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "tableOfContentsEntry" | ✓ | Constant: "tableOfContentsEntry" |
toc.editEntry
toc.editEntry
editor.doc.toc.editEntry(...)| Field | Type | Req | Description |
|---|---|---|---|
patch | object | ✓ | |
patch.level | integer | ||
patch.omitPageNumber | boolean | ||
patch.tableIdentifier | string | ||
patch.text | string | ||
target | { kind: "inline", nodeType: "tableOfContentsEntry" } | ✓ | |
target.kind | "inline" | ✓ | Constant: "inline" |
target.nodeId | string | ✓ | |
target.nodeType | "tableOfContentsEntry" | ✓ | Constant: "tableOfContentsEntry" |
Tables (47)
Tables (47)
tables.convertFromText
tables.convertFromText
editor.doc.tables.convertFromText(...)| Field | Type | Req | Description |
|---|---|---|---|
columns | integer | ||
delimiter | ”tab” | “comma” | “paragraph” | object | One of: enum, object | |
inferColumns | boolean | ||
nodeId | string | ||
target | BlockNodeAddress | BlockNodeAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | ”paragraph” | “heading” | “listItem” | … | "paragraph", "heading", "listItem", "table", "tableRow", "tableCell", "tableOfContents", "image", "sdt" |
tables.delete
tables.delete
editor.doc.tables.delete(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.clearContents
tables.clearContents
editor.doc.tables.clearContents(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.move
tables.move
editor.doc.tables.move(...)| Field | Type | Req | Description |
|---|---|---|---|
destination | { kind: "documentStart" } | { kind: "documentEnd" } | { kind: "before" } | { kind: "after" } | ✓ | One of: object(kind=“documentStart”), object(kind=“documentEnd”), object(kind=“before”), object(kind=“after”), object(kind=“before”), object(kind=“after”) |
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.split
tables.split
editor.doc.tables.split(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ||
rowIndex | integer | ✓ | |
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.convertToText
tables.convertToText
editor.doc.tables.convertToText(...)| Field | Type | Req | Description |
|---|---|---|---|
delimiter | ”tab” | “comma” | “paragraph” | "tab", "comma", "paragraph" | |
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.setLayout
tables.setLayout
editor.doc.tables.setLayout(...)| Field | Type | Req | Description |
|---|---|---|---|
alignment | ”left” | “center” | “right” | "left", "center", "right" | |
autoFitMode | ”fixedWidth” | “fitContents” | “fitWindow” | "fixedWidth", "fitContents", "fitWindow" | |
leftIndentPt | number | ||
nodeId | string | ||
preferredWidth | number | ||
tableDirection | ”ltr” | “rtl” | "ltr", "rtl" | |
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.insertRow
tables.insertRow
tables.deleteRow
tables.deleteRow
tables.setRowHeight
tables.setRowHeight
tables.distributeRows
tables.distributeRows
editor.doc.tables.distributeRows(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.setRowOptions
tables.setRowOptions
tables.insertColumn
tables.insertColumn
editor.doc.tables.insertColumn(...)| Field | Type | Req | Description |
|---|---|---|---|
columnIndex | integer | ||
count | integer | ||
nodeId | string | ||
position | ”left” | “right” | “first” | … | ✓ | "left", "right", "first", "last" |
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.deleteColumn
tables.deleteColumn
editor.doc.tables.deleteColumn(...)| Field | Type | Req | Description |
|---|---|---|---|
columnIndex | integer | ✓ | |
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.setColumnWidth
tables.setColumnWidth
editor.doc.tables.setColumnWidth(...)| Field | Type | Req | Description |
|---|---|---|---|
columnIndex | integer | ✓ | |
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" | |
widthPt | number | ✓ |
tables.distributeColumns
tables.distributeColumns
editor.doc.tables.distributeColumns(...)| Field | Type | Req | Description |
|---|---|---|---|
columnRange | object | ||
columnRange.end | integer | ||
columnRange.start | integer | ||
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.insertCell
tables.insertCell
editor.doc.tables.insertCell(...)| Field | Type | Req | Description |
|---|---|---|---|
mode | ”shiftRight” | “shiftDown” | ✓ | "shiftRight", "shiftDown" |
nodeId | string | ||
target | TableCellAddress | TableCellAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "tableCell" | Constant: "tableCell" |
tables.deleteCell
tables.deleteCell
editor.doc.tables.deleteCell(...)| Field | Type | Req | Description |
|---|---|---|---|
mode | ”shiftLeft” | “shiftUp” | ✓ | "shiftLeft", "shiftUp" |
nodeId | string | ||
target | TableCellAddress | TableCellAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "tableCell" | Constant: "tableCell" |
tables.mergeCells
tables.mergeCells
editor.doc.tables.mergeCells(...)| Field | Type | Req | Description |
|---|---|---|---|
end | object | ✓ | |
end.columnIndex | integer | ✓ | |
end.rowIndex | integer | ✓ | |
nodeId | string | ||
start | object | ✓ | |
start.columnIndex | integer | ✓ | |
start.rowIndex | integer | ✓ | |
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.unmergeCells
tables.unmergeCells
tables.splitCell
tables.splitCell
editor.doc.tables.splitCell(...)| Field | Type | Req | Description |
|---|---|---|---|
columns | integer | ✓ | |
nodeId | string | ||
rows | integer | ✓ | |
target | TableCellAddress | TableCellAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "tableCell" | Constant: "tableCell" |
tables.setCellProperties
tables.setCellProperties
editor.doc.tables.setCellProperties(...)| Field | Type | Req | Description |
|---|---|---|---|
fitText | boolean | ||
nodeId | string | ||
preferredWidthPt | number | ||
target | TableCellAddress | TableCellAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "tableCell" | Constant: "tableCell" | |
verticalAlign | ”top” | “center” | “bottom” | "top", "center", "bottom" | |
wrapText | boolean |
tables.setCellText
tables.setCellText
tables.sort
tables.sort
editor.doc.tables.sort(...)| Field | Type | Req | Description |
|---|---|---|---|
keys | object[] | ✓ | |
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.setAltText
tables.setAltText
editor.doc.tables.setAltText(...)| Field | Type | Req | Description |
|---|---|---|---|
description | string | ||
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" | |
title | string |
tables.setStyle
tables.setStyle
editor.doc.tables.setStyle(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ||
styleId | string | ✓ | |
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.clearStyle
tables.clearStyle
editor.doc.tables.clearStyle(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.setStyleOption
tables.setStyleOption
editor.doc.tables.setStyleOption(...)| Field | Type | Req | Description |
|---|---|---|---|
enabled | boolean | ✓ | |
flag | ”headerRow” | “lastRow” | “totalRow” | … | ✓ | "headerRow", "lastRow", "totalRow", "firstColumn", "lastColumn", "bandedRows", "bandedColumns" |
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.setBorder
tables.setBorder
editor.doc.tables.setBorder(...)| Field | Type | Req | Description |
|---|---|---|---|
color | string | ✓ | |
edge | ”top” | “bottom” | “left” | … | ✓ | "top", "bottom", "left", "right", "insideH", "insideV", "diagonalDown", "diagonalUp" |
lineStyle | string | ✓ | |
lineWeightPt | number | ✓ | |
nodeId | string | ||
target | TableOrCellAddress | TableOrCellAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | ”table” | “tableCell” | "table", "tableCell" |
tables.clearBorder
tables.clearBorder
editor.doc.tables.clearBorder(...)| Field | Type | Req | Description |
|---|---|---|---|
edge | ”top” | “bottom” | “left” | … | ✓ | "top", "bottom", "left", "right", "insideH", "insideV", "diagonalDown", "diagonalUp" |
nodeId | string | ||
target | TableOrCellAddress | TableOrCellAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | ”table” | “tableCell” | "table", "tableCell" |
tables.applyBorderPreset
tables.applyBorderPreset
editor.doc.tables.applyBorderPreset(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ||
preset | ”box” | “all” | “none” | … | ✓ | "box", "all", "none", "grid", "custom" |
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.setShading
tables.setShading
editor.doc.tables.setShading(...)| Field | Type | Req | Description |
|---|---|---|---|
color | string | null | ✓ | One of: string, null |
nodeId | string | ||
target | TableOrCellAddress | TableOrCellAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | ”table” | “tableCell” | "table", "tableCell" |
tables.clearShading
tables.clearShading
editor.doc.tables.clearShading(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ||
target | TableOrCellAddress | TableOrCellAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | ”table” | “tableCell” | "table", "tableCell" |
tables.setTablePadding
tables.setTablePadding
editor.doc.tables.setTablePadding(...)| Field | Type | Req | Description |
|---|---|---|---|
bottomPt | number | ✓ | |
leftPt | number | ✓ | |
nodeId | string | ||
rightPt | number | ✓ | |
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" | |
topPt | number | ✓ |
tables.setCellPadding
tables.setCellPadding
editor.doc.tables.setCellPadding(...)| Field | Type | Req | Description |
|---|---|---|---|
bottomPt | number | ✓ | |
leftPt | number | ✓ | |
nodeId | string | ||
rightPt | number | ✓ | |
target | TableCellAddress | TableCellAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "tableCell" | Constant: "tableCell" | |
topPt | number | ✓ |
tables.setCellSpacing
tables.setCellSpacing
editor.doc.tables.setCellSpacing(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ||
spacingPt | number | ✓ | |
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.clearCellSpacing
tables.clearCellSpacing
editor.doc.tables.clearCellSpacing(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.applyStyle
tables.applyStyle
editor.doc.tables.applyStyle(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ||
styleId | string | ||
styleOptions | object | ||
styleOptions.bandedColumns | boolean | ||
styleOptions.bandedRows | boolean | ||
styleOptions.firstColumn | boolean | ||
styleOptions.headerRow | boolean | ||
styleOptions.lastColumn | boolean | ||
styleOptions.lastRow | boolean | ||
styleOptions.totalRow | boolean | ||
target | BlockNodeAddress | BlockNodeAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | ”paragraph” | “heading” | “listItem” | … | "paragraph", "heading", "listItem", "table", "tableRow", "tableCell", "tableOfContents", "image", "sdt" |
tables.setBorders
tables.setBorders
tables.setTableOptions
tables.setTableOptions
editor.doc.tables.setTableOptions(...)| Field | Type | Req | Description |
|---|---|---|---|
cellSpacingPt | number | null | One of: number, null | |
defaultCellMargins | object | ||
defaultCellMargins.bottomPt | number | ||
defaultCellMargins.leftPt | number | ||
defaultCellMargins.rightPt | number | ||
defaultCellMargins.topPt | number | ||
nodeId | string | ||
target | BlockNodeAddress | BlockNodeAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | ”paragraph” | “heading” | “listItem” | … | "paragraph", "heading", "listItem", "table", "tableRow", "tableCell", "tableOfContents", "image", "sdt" |
tables.applyPreset
tables.applyPreset
editor.doc.tables.applyPreset(...)| Field | Type | Req | Description |
|---|---|---|---|
accentColor | string | ||
nodeId | string | ||
preset | ”grid” | “minimal” | “striped” | … | ✓ | "grid", "minimal", "striped", "accent" |
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.get
tables.get
editor.doc.tables.get(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.getCells
tables.getCells
editor.doc.tables.getCells(...)| Field | Type | Req | Description |
|---|---|---|---|
columnIndex | integer | ||
nodeId | string | ||
rowIndex | integer | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.getProperties
tables.getProperties
editor.doc.tables.getProperties(...)| Field | Type | Req | Description |
|---|---|---|---|
nodeId | string | ||
target | TableAddress | TableAddress | |
target.kind | "block" | Constant: "block" | |
target.nodeId | string | ||
target.nodeType | "table" | Constant: "table" |
tables.getStyles
tables.getStyles
tables.setDefaultStyle
tables.setDefaultStyle
tables.clearDefaultStyle
tables.clearDefaultStyle
Templates (1)
Templates (1)
templates.apply
templates.apply
editor.doc.templates.apply(...)| Field | Type | Req | Description |
|---|---|---|---|
bodyPolicy | "preserve" | Constant: "preserve" | |
source | { kind: "path" } | { kind: "base64" } | ✓ | One of: object(kind=“path”), object(kind=“base64”) |
Track Changes (3)
Track Changes (3)
trackChanges.list
trackChanges.list
editor.doc.trackChanges.list(...)| Field | Type | Req | Description |
|---|---|---|---|
in | StoryLocator | "all" | One of: StoryLocator, "all" | |
limit | integer | ||
offset | integer | ||
type | ”insert” | “delete” | “replacement” | … | "insert", "delete", "replacement", "format" |
trackChanges.get
trackChanges.get
editor.doc.trackChanges.get(...)| Field | Type | Req | Description |
|---|---|---|---|
id | string | ✓ | |
story | StoryLocator | StoryLocator |
trackChanges.decide
trackChanges.decide
editor.doc.trackChanges.decide(...)| Field | Type | Req | Description |
|---|---|---|---|
decision | ”accept” | “reject” | ✓ | "accept", "reject" |
target | object | { kind: "range" } | ✓ | One of: object, object(kind=“range”), object |


comments.create
editor.doc.comments.create(...)parentCommentIdtarget{ kind: "text" }|{ kind: "selection" }|{ kind: "trackedChange" }textcomments.patch
editor.doc.comments.patch(...)commentIdisInternalstatus"resolved","active"target{ kind: "text" }|{ kind: "selection" }|{ kind: "trackedChange" }textcomments.delete
editor.doc.comments.delete(...)commentIdcomments.get
editor.doc.comments.get(...)commentIdcomments.list
editor.doc.comments.list(...)includeResolvedlimitoffset