mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-23 00:27:49 +08:00
21 lines
577 B
TypeScript
21 lines
577 B
TypeScript
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'
|
|
|
|
export default function extensions() {
|
|
return [
|
|
new Document(),
|
|
new History(),
|
|
new Paragraph(),
|
|
new Text(),
|
|
new Bold(),
|
|
new Italic(),
|
|
new Code(),
|
|
new CodeBlock(),
|
|
]
|
|
} |