tiptap/docs/api/commands/exit-code.md

8 lines
212 B
Markdown
Raw Normal View History

2021-04-21 17:03:33 +08:00
# 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.
2021-04-21 17:03:33 +08:00
## Usage
```js
editor.commands.exitCode()
```