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

8 lines
210 B
Markdown

# newlineInCode
`newlineInCode` inserts a new line in the current code block. If a selection is set, the selection will be replaced with a newline character.
## Usage
```js
editor.commands.newlineInCode()
```