jeditor增加br换行支持
This commit is contained in:
parent
e8ed414250
commit
9a3c2141f1
@ -3,6 +3,7 @@ import { onMounted, onBeforeUnmount, ref, watch, computed, useSlots } from 'vue'
|
|||||||
import { Editor, Extension, Node } from '@tiptap/core'
|
import { Editor, Extension, Node } from '@tiptap/core'
|
||||||
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 HardBreak from '@tiptap/extension-hard-break'
|
||||||
import Text from '@tiptap/extension-text'
|
import Text from '@tiptap/extension-text'
|
||||||
import Bold from '@tiptap/extension-bold'
|
import Bold from '@tiptap/extension-bold'
|
||||||
import Italic from '@tiptap/extension-italic'
|
import Italic from '@tiptap/extension-italic'
|
||||||
@ -711,6 +712,7 @@ function mountControl() {
|
|||||||
content: '(paragraph | heading | blockquote | codeBlock | horizontalRule | customDiv | table | bulletList | orderedList | taskList)+',
|
content: '(paragraph | heading | blockquote | codeBlock | horizontalRule | customDiv | table | bulletList | orderedList | taskList)+',
|
||||||
}),
|
}),
|
||||||
CustomDiv,
|
CustomDiv,
|
||||||
|
HardBreak,
|
||||||
Paragraph,
|
Paragraph,
|
||||||
Text,
|
Text,
|
||||||
Bold,
|
Bold,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user