|
| 1 | +--- |
| 2 | +sidebar_position: 6 |
| 3 | +--- |
| 4 | + |
| 5 | +# Editor |
| 6 | + |
| 7 | +Docmost features a block-based rich text editor built on top of TipTap. The editor supports a wide range of content types, formatting options, and embeds to help you create rich documentation. |
| 8 | + |
| 9 | +## Slash Commands |
| 10 | + |
| 11 | +Type `/` on a new line to open the slash command menu. You can also type to filter commands by name. The following commands are available: |
| 12 | + |
| 13 | +### Basic |
| 14 | + |
| 15 | +| Command | Description | |
| 16 | +|---------|-------------| |
| 17 | +| **Text** | Plain paragraph text | |
| 18 | +| **To-do list** | Track tasks with a to-do list with checkboxes | |
| 19 | +| **Heading 1** | Large section heading | |
| 20 | +| **Heading 2** | Medium section heading | |
| 21 | +| **Heading 3** | Small section heading | |
| 22 | +| **Bullet list** | Create an unordered bullet list | |
| 23 | +| **Numbered list** | Create an ordered numbered list | |
| 24 | +| **Quote** | Create a block quote | |
| 25 | +| **Code** | Insert a code block with syntax highlighting | |
| 26 | +| **Divider** | Insert a horizontal rule divider | |
| 27 | + |
| 28 | +### Media |
| 29 | + |
| 30 | +| Command | Description | |
| 31 | +|---------|-------------| |
| 32 | +| **Image** | Upload an image from your device | |
| 33 | +| **Video** | Upload a video from your device | |
| 34 | +| **File attachment** | Upload any file from your device | |
| 35 | + |
| 36 | +### Structure |
| 37 | + |
| 38 | +| Command | Description | |
| 39 | +|---------|-------------| |
| 40 | +| **Table** | Insert a table | |
| 41 | +| **Table View** | Insert a database-style table view | |
| 42 | +| **Kanban Board** | Insert a Kanban board | |
| 43 | +| **Toggle block** | Insert a collapsible block | |
| 44 | +| **Callout** | Insert a callout notice block | |
| 45 | +| **Columns (2-5)** | Insert multi-column layouts | |
| 46 | + |
| 47 | +### Advanced |
| 48 | + |
| 49 | +| Command | Description | |
| 50 | +|---------|-------------| |
| 51 | +| **Math inline** | Insert an inline math equation (KaTeX) | |
| 52 | +| **Math block** | Insert a block-level math equation (KaTeX) | |
| 53 | +| **Mermaid diagram** | Insert a Mermaid diagram (flowcharts, sequence diagrams, etc.) | |
| 54 | +| **Draw.io** | Open the Draw.io diagram editor | |
| 55 | +| **Excalidraw** | Open the Excalidraw whiteboard editor | |
| 56 | +| **Date** | Insert a date with a calendar picker | |
| 57 | +| **Subpages** | List all child pages of the current page | |
| 58 | +| **Insert Link** | Link to pages or external URLs | |
| 59 | +| **Mention member** | Mention a workspace member | |
| 60 | + |
| 61 | +### Embeds |
| 62 | + |
| 63 | +| Command | Description | |
| 64 | +|---------|-------------| |
| 65 | +| **Iframe embed** | Embed content via an iframe URL | |
| 66 | +| **Airtable** | Embed an Airtable base | |
| 67 | +| **Loom** | Embed a Loom video | |
| 68 | +| **Figma** | Embed Figma files | |
| 69 | +| **Typeform** | Embed a Typeform | |
| 70 | +| **Miro** | Embed a Miro board | |
| 71 | +| **YouTube** | Embed a YouTube video | |
| 72 | +| **Vimeo** | Embed a Vimeo video | |
| 73 | +| **Framer** | Embed a Framer prototype | |
| 74 | +| **Google Drive** | Embed Google Drive content | |
| 75 | +| **Google Sheets** | Embed Google Sheets | |
| 76 | +| **Google Docs** | Embed Google Docs | |
| 77 | + |
| 78 | +## Formatting Toolbar |
| 79 | + |
| 80 | +Select text to reveal the floating formatting toolbar. The toolbar provides quick access to: |
| 81 | + |
| 82 | +- **Ask AI** - Use the AI assistant to help with writing |
| 83 | +- **Block type** - Convert the block to a different type (Text, Heading 1-3, To-do List, Bullet List, Numbered List, Blockquote, Code, Callout, Toggle block) |
| 84 | +- **Alignment** - Align text left, center, right, or justify |
| 85 | +- **Bold** (`Ctrl/Cmd + B`) |
| 86 | +- **Italic** (`Ctrl/Cmd + I`) |
| 87 | +- **Underline** (`Ctrl/Cmd + U`) |
| 88 | +- **Strikethrough** |
| 89 | +- **Inline code** (`Ctrl/Cmd + E`) |
| 90 | +- **Link** - Insert or edit a hyperlink |
| 91 | +- **Text color** - Choose from a palette of text colors |
| 92 | +- **Highlight color** - Choose from a palette of background highlight colors |
| 93 | +- **Comment** - Add an inline comment on the selected text |
| 94 | + |
| 95 | +## @ Mentions |
| 96 | + |
| 97 | +Type `@` in the editor to open the mention menu. The menu shows two sections: |
| 98 | + |
| 99 | +- **Users** - Mention workspace members by name. Mentioned users may receive notifications. |
| 100 | +- **Pages** - Link to existing pages in your workspace. Type to search for a specific page. |
| 101 | + |
| 102 | +## Emoji |
| 103 | + |
| 104 | +Type `:` followed by a keyword to search and insert emoji. For example, `:smile` shows matching emoji suggestions. |
| 105 | + |
| 106 | +## Drag and Drop |
| 107 | + |
| 108 | +Hover over any block to reveal a drag handle on the left. Click and drag the handle to reorder blocks within the page. |
| 109 | + |
| 110 | +## Keyboard Shortcuts |
| 111 | + |
| 112 | +### Text Formatting |
| 113 | + |
| 114 | +| Shortcut | Action | |
| 115 | +|----------|--------| |
| 116 | +| `Ctrl/Cmd + B` | Bold | |
| 117 | +| `Ctrl/Cmd + I` | Italic | |
| 118 | +| `Ctrl/Cmd + U` | Underline | |
| 119 | +| `Ctrl/Cmd + E` | Inline code | |
| 120 | +| `Ctrl/Cmd + Shift + X` | Strikethrough | |
| 121 | + |
| 122 | +### Blocks |
| 123 | + |
| 124 | +| Shortcut | Action | |
| 125 | +|----------|--------| |
| 126 | +| `Ctrl/Cmd + Alt + 1-6` | Heading 1-6 | |
| 127 | +| `Ctrl/Cmd + Shift + B` | Block quote | |
| 128 | +| `Ctrl/Cmd + Alt + C` | Code block | |
| 129 | +| `Ctrl/Cmd + Shift + U` | Bullet list | |
| 130 | +| `Ctrl/Cmd + Shift + O` | Numbered list | |
| 131 | +| `Ctrl/Cmd + Shift + T` | Toggle task list | |
| 132 | + |
| 133 | +### General |
| 134 | + |
| 135 | +| Shortcut | Action | |
| 136 | +|----------|--------| |
| 137 | +| `Ctrl/Cmd + F` | Find and replace | |
| 138 | +| `Ctrl/Cmd + A` | Select all (within code block, selects code content only) | |
| 139 | +| `Tab` | Indent list item or navigate to next table cell | |
| 140 | +| `Shift + Tab` | Outdent list item or navigate to previous table cell | |
| 141 | +| `/` | Open slash command menu | |
| 142 | +| `@` | Open mention menu | |
| 143 | +| `:` | Open emoji picker | |
| 144 | + |
| 145 | +### Markdown Shortcuts |
| 146 | + |
| 147 | +The editor supports standard Markdown shortcuts as you type: |
| 148 | + |
| 149 | +| Input | Result | |
| 150 | +|-------|--------| |
| 151 | +| `# ` | Heading 1 | |
| 152 | +| `## ` | Heading 2 | |
| 153 | +| `### ` | Heading 3 | |
| 154 | +| `- ` or `* ` | Bullet list | |
| 155 | +| `1. ` | Numbered list | |
| 156 | +| `[ ] ` | To-do list item | |
| 157 | +| `> ` | Block quote | |
| 158 | +| `` ``` `` | Code block | |
| 159 | +| `---` | Divider | |
| 160 | +| `**text**` | Bold | |
| 161 | +| `*text*` | Italic | |
| 162 | +| `` `text` `` | Inline code | |
| 163 | +| `~~text~~` | Strikethrough | |
| 164 | + |
| 165 | +You can also paste Markdown content directly into the editor and it will be automatically converted to rich text. |
0 commit comments