diff --git a/docs/src/demos/Extensions/HardBreak/index.spec.js b/docs/src/demos/Extensions/HardBreak/index.spec.js new file mode 100644 index 00000000..73c6f908 --- /dev/null +++ b/docs/src/demos/Extensions/HardBreak/index.spec.js @@ -0,0 +1,5 @@ +context('/api/extensions/hard-break', () => { + beforeEach(() => { + cy.visit('/api/extensions/hard-break') + }) +}) \ No newline at end of file diff --git a/docs/src/demos/Extensions/HardBreak/index.vue b/docs/src/demos/Extensions/HardBreak/index.vue new file mode 100644 index 00000000..10588c46 --- /dev/null +++ b/docs/src/demos/Extensions/HardBreak/index.vue @@ -0,0 +1,55 @@ + + + \ No newline at end of file diff --git a/docs/src/docPages/api/extensions/hard-break.md b/docs/src/docPages/api/extensions/hard-break.md index 0741a68a..913cfdbb 100644 --- a/docs/src/docPages/api/extensions/hard-break.md +++ b/docs/src/docPages/api/extensions/hard-break.md @@ -1,9 +1,18 @@ # HardBreak -Enables you to use the `
` HTML tag in the editor. +The HardBreak extensions adds support for the `
` HTML tag, which forces a line break. ## Options *None* +## Commands +*None* + ## Keyboard shortcuts -* `Command` + `Enter` -* `Shift` + `Enter` \ No newline at end of file +* Windows & Linux: `Shift` + `Enter` +* macOS: `Command` + `Enter` + +## Source Code +[packages/extension-hard-break/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-hard-break/) + +## Usage +