Skip to content

Commit ce57cc4

Browse files
authored
Merge pull request #8175 from nextcloud/backport/8169/stable31
[stable31] fix: add break extension to table editor
2 parents ba2424b + 17269a5 commit ce57cc4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/Editor/PlainTableContentEditor.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import { Editor } from '@tiptap/core'
1515
/* eslint-disable import/no-named-as-default */
1616
import History from '@tiptap/extension-history'
17+
import HardBreak from '@tiptap/extension-hard-break'
1718
import MainContainer from './MainContainer.vue'
1819
import Wrapper from './Wrapper.vue'
1920
import ContentContainer from './ContentContainer.vue'
@@ -59,7 +60,7 @@ export default {
5960
6061
created() {
6162
const html = markdownit.render(this.content)
62-
const extensions = [PlainTable, History]
63+
const extensions = [HardBreak, PlainTable, History]
6364
6465
this.$editor = new Editor({
6566
content: html,

0 commit comments

Comments
 (0)