tiptap/docs/api/commands/newline-in-code.md

8 lines
210 B
Markdown
Raw Normal View History

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