2020-08-13 20:14:28 +08:00
|
|
|
export * from '@tiptap/vue'
|
|
|
|
|
|
|
|
import Document from '@tiptap/extension-document'
|
|
|
|
import Paragraph from '@tiptap/extension-paragraph'
|
|
|
|
import Text from '@tiptap/extension-text'
|
|
|
|
import History from '@tiptap/extension-history'
|
|
|
|
import Bold from '@tiptap/extension-bold'
|
|
|
|
import Italic from '@tiptap/extension-italic'
|
|
|
|
import Code from '@tiptap/extension-code'
|
|
|
|
import CodeBlock from '@tiptap/extension-codeblock'
|
|
|
|
import Heading from '@tiptap/extension-heading'
|
|
|
|
|
|
|
|
export function defaultExtensions() {
|
|
|
|
return [
|
2020-09-09 05:44:45 +08:00
|
|
|
Document(),
|
|
|
|
History(),
|
|
|
|
Paragraph(),
|
|
|
|
Text(),
|
|
|
|
Bold(),
|
|
|
|
Italic(),
|
|
|
|
Code(),
|
|
|
|
CodeBlock(),
|
|
|
|
Heading(),
|
2020-08-13 20:14:28 +08:00
|
|
|
]
|
|
|
|
}
|