You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/document-api/reference/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ The tables below are grouped by namespace.
70
70
| <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><ahref="/document-api/reference/markdown-to-fragment"><code>markdownToFragment</code></a></span> | <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.markdownToFragment(...)</code></span> | Convert a Markdown string into an SDM/1 structural fragment. |
71
71
| <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><ahref="/document-api/reference/info"><code>info</code></a></span> | <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.info(...)</code></span> | Return document summary info including word, character, paragraph, heading, table, image, comment, tracked-change, SDT-field, list, and page counts, plus outline and capabilities. |
72
72
| <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><ahref="/document-api/reference/clear-content"><code>clearContent</code></a></span> | <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.clearContent(...)</code></span> | Clear all document body content, leaving a single empty paragraph. |
73
-
| <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><ahref="/document-api/reference/insert"><code>insert</code></a></span> | <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.insert(...)</code></span> | Insert content into the document. Two input shapes: legacy string-based (value + type) inserts inline content at a text position within an existing block; structural SDFragment (content) inserts one or more blocks as siblings relative to a BlockNodeAddress target. When target is omitted, content appends at the end of the document. Legacy mode supports text (default), markdown, and html content types via the `type` field. Structural mode uses `placement` (before/after/insideStart/insideEnd) to position relative to the target block. |
73
+
| <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><ahref="/document-api/reference/insert"><code>insert</code></a></span> | <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.insert(...)</code></span> | Insert content into the document. Two input shapes: text-based (value + type) inserts inline content at a SelectionTarget or ref position within an existing block; structural SDFragment (content) inserts one or more blocks as siblings relative to a BlockNodeAddress target. When target/ref is omitted, content appends at the end of the document. Text mode supports text (default), markdown, and html content types via the `type` field. Structural mode uses `placement` (before/after/insideStart/insideEnd) to position relative to the target block. |
74
74
| <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><ahref="/document-api/reference/replace"><code>replace</code></a></span> | <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.replace(...)</code></span> | Replace content at a contiguous document selection. Text path accepts a SelectionTarget or ref plus replacement text. Structural path accepts a BlockNodeAddress (replaces whole block), SelectionTarget (expands to full covered block boundaries), or ref plus SDFragment content. |
75
75
| <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><ahref="/document-api/reference/delete"><code>delete</code></a></span> | <spanstyle={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.delete(...)</code></span> | Delete content at a contiguous document selection. Accepts a SelectionTarget or mutation-ready ref. Supports cross-block deletion and optional block-edge expansion via behavior mode. |
0 commit comments