OOXML Structure
Use case
- Headings - Visual hierarchy without changing size
- Key terms - Highlight important concepts
- Warnings - Draw immediate attention
- Emphasis - Stronger than italic
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Bring your own editor UI. Use SuperDoc as the document engine underneath. Read the announcement →
<w:r>
<w:rPr>
<w:b/>
</w:rPr>
<w:t>Bold text</w:t>
</w:r>
setBoldeditor.commands.setBold()
import { SuperDoc } from 'superdoc';
import 'superdoc/style.css';
const superdoc = new SuperDoc({
selector: '#editor',
document: yourFile,
onReady: (superdoc) => {
const editor = superdoc.activeEditor;
editor.commands.setBold();
},
});
unsetBoldeditor.commands.unsetBold()
import { SuperDoc } from 'superdoc';
import 'superdoc/style.css';
const superdoc = new SuperDoc({
selector: '#editor',
document: yourFile,
onReady: (superdoc) => {
const editor = superdoc.activeEditor;
editor.commands.unsetBold();
},
});
toggleBoldeditor.commands.toggleBold()
import { SuperDoc } from 'superdoc';
import 'superdoc/style.css';
const superdoc = new SuperDoc({
selector: '#editor',
document: yourFile,
onReady: (superdoc) => {
const editor = superdoc.activeEditor;
editor.commands.toggleBold();
},
});
| Command | Shortcut | Description |
|---|---|---|
| toggleBold() | ⌘/Ctrl-b | Toggle bold formatting |
| toggleBold() | ⌘/Ctrl-B | Toggle bold formatting (uppercase) |
Was this page helpful?
