2020-03-28 05:04:02 +08:00
|
|
|
import Document from '@tiptap/extension-document'
|
|
|
|
import Paragraph from '@tiptap/extension-paragraph'
|
|
|
|
import Text from '@tiptap/extension-text'
|
2020-04-17 02:03:15 +08:00
|
|
|
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'
|
2020-03-06 19:18:20 +08:00
|
|
|
|
|
|
|
export default function extensions() {
|
|
|
|
return [
|
|
|
|
new Document(),
|
|
|
|
new History(),
|
|
|
|
new Paragraph(),
|
|
|
|
new Text(),
|
2020-04-17 02:03:15 +08:00
|
|
|
new Bold(),
|
|
|
|
new Italic(),
|
|
|
|
new Code(),
|
|
|
|
new CodeBlock(),
|
2020-03-06 19:18:20 +08:00
|
|
|
]
|
|
|
|
}
|