Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions frontend/js/components/WysiwygTiptap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,6 @@
import LocaleMixin from '@/mixins/locale'
import {Link} from "@tiptap/extension-link";
import {Placeholder} from "@tiptap/extension-placeholder";
import {HardBreak} from "@tiptap/extension-hard-break";
import {HorizontalRule} from "@tiptap/extension-horizontal-rule";
import {TextAlign} from '@tiptap/extension-text-align';

export default {
Expand Down Expand Up @@ -538,7 +536,6 @@

const content = this.value || ''
const extensions = [
HardBreak,
TextAlign.configure({
types: ['heading','paragraph'],
}),
Expand Down Expand Up @@ -623,9 +620,6 @@
extensions.push(TableRow)
break
}
case 'hr': {
extensions.push(HorizontalRule)
}
}
})

Expand All @@ -635,6 +629,7 @@
listItem: this.toolbar.ordered || this.toolbar.bullet || false,
code: this.toolbar.code ?? false,
codeBlock: this.toolbar.codeBlock ?? false,
horizontalRule: this.toolbar.hr ?? false,
}))

this.editor = new Editor({
Expand Down