enable hardbreak demo

This commit is contained in:
Hans Pagel
2020-09-10 11:58:00 +02:00
parent ee139084f4
commit 13ea910326
2 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text'
// import HardBreak from '@tiptap/extension-hard-break'
import HardBreak from '@tiptap/extension-hard-break'
export default {
components: {
@@ -29,7 +29,7 @@ export default {
Document(),
Paragraph(),
Text(),
// HardBreak(),
HardBreak(),
],
content: `
<p>

View File

@@ -4,14 +4,14 @@ The HardBreak extensions adds support for the `<br>` HTML tag, which forces a li
## Options
*None*
## Commands
## Commands
| Command | Options | Description |
| --------- | ------- | ----------------- |
| hardBreak | — | Add a line break. |
## Keyboard shortcuts
* Windows & Linux: `Shift` + `Enter`
* `Shift` + `Enter`
* Windows & Linux: `Control` + `Enter`
* macOS: `Command` + `Enter`
## Source Code