tiptap/docs/api/commands/exit-code.md
2022-06-08 12:15:59 +02:00

8 lines
212 B
Markdown

# exitCode
The `exitCode` command will create a default block after the current selection if the selection is a `code` element and move the cursor to the new block.
## Usage
```js
editor.commands.exitCode()
```