OOXML Structure
Use case
- Emphasis - Softer than bold
- Foreign words - Lorem ipsum, c’est la vie
- Thoughts - Internal dialogue or asides
- Citations - Book titles, publications
- Technical terms - First usage of terminology
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:i/>
</w:rPr>
<w:t>Italic text</w:t>
</w:r>
setItaliceditor.commands.setItalic()
import { SuperDoc } from 'superdoc';
import 'superdoc/style.css';
const superdoc = new SuperDoc({
selector: '#editor',
document: yourFile,
onReady: (superdoc) => {
const editor = superdoc.activeEditor;
editor.commands.setItalic();
},
});
unsetItaliceditor.commands.unsetItalic()
import { SuperDoc } from 'superdoc';
import 'superdoc/style.css';
const superdoc = new SuperDoc({
selector: '#editor',
document: yourFile,
onReady: (superdoc) => {
const editor = superdoc.activeEditor;
editor.commands.unsetItalic();
},
});
toggleItaliceditor.commands.toggleItalic()
import { SuperDoc } from 'superdoc';
import 'superdoc/style.css';
const superdoc = new SuperDoc({
selector: '#editor',
document: yourFile,
onReady: (superdoc) => {
const editor = superdoc.activeEditor;
editor.commands.toggleItalic();
},
});
| Command | Shortcut | Description |
|---|---|---|
| toggleItalic() | ⌘/Ctrl-i | Toggle italic formatting |
| toggleItalic() | ⌘/Ctrl-I | Toggle italic formatting (uppercase) |
Was this page helpful?
