Optional chrome
The comments panel has no built-in button. Comment chips render next to the
page, and your UI opens or closes the panel.
Ribbon modes
Custom toolbar
SettoolbarMode="none", subscribe to toolbar state, and render your own
controls:
ReviseToolbarState includes:
ready, readOnly, documentMode, hasSelection, canUndo/canRedo, the
formatting marks at the caret, heading, alignment, lineSpacing,
fontSizePt, the current blockType, and a review summary.
Toolbar commands
Clipboard and history
Clipboard and history
undo, redo, copy, copyAs("plaintext" | "markdown" | "html"), cut,
paste, pasteTextOnly, pasteFormattingOnlyInline formatting
Inline formatting
toggleBold, toggleItalic, toggleUnderline, toggleStrikethrough,
toggleDoubleStrikethrough, toggleSmallCaps, toggleAllCaps,
toggleCode, toggleLatex, toggleSuperscript, toggleSubscript,
clearFormatting, setFontFamily, setFontSize, setLetterSpacing,
setTextColor, setHighlightColorParagraph and block
Paragraph and block
setHeading, setAlignment, setLineSpacing, toggleList, createLink,
increaseIndent, decreaseIndentInsertion
Insertion
insertTable, insertImage, insertContainer, insertCodeBlock,
insertMathBlock, insertDiagram, insertFootnote, insertPageNumber,
insertPageBreak, insertSectionBreakReview
Review
openReview, closeReview, reviewPrevious, reviewNext,
acceptCurrent, rejectCurrent, acceptAll, rejectAll,
setShowRemovals, setSuggestionViewModefalse when it cannot apply, for example in a read-only
document, with no selection, or with nothing to undo.
View controller
Theview controller sets the title, document mode, and panels:
Built-in tabs
Turn on the built-in document tabs withshowTabs:
onNewTab.
Focus
The editor takes keyboard focus when a document becomes active. To focus it only on click, for example in a preview or split view, setautoFocus={false}: