Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
<w:r> <w:rPr> <w:b/> </w:rPr> <w:t>Bold text</w:t> </w:r>
setBold
editor.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(); }, });
unsetBold
editor.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(); }, });
toggleBold
editor.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(); }, });
⌘/Ctrl-b
⌘/Ctrl-B
Was this page helpful?