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

View File

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