mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-21 15:28:09 +08:00
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
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-code-block'
|
|
import Heading from '@tiptap/extension-heading'
|
|
import HardBreak from '@tiptap/extension-hard-break'
|
|
import Strike from '@tiptap/extension-strike'
|
|
import Underline from '@tiptap/extension-underline'
|
|
import Blockquote from '@tiptap/extension-blockquote'
|
|
import HorizontalRule from '@tiptap/extension-horizontal-rule'
|
|
import BulletList from '@tiptap/extension-bullet-list'
|
|
import OrderedList from '@tiptap/extension-ordered-list'
|
|
import ListItem from '@tiptap/extension-list-item'
|
|
|
|
export default function defaultExtensions() {
|
|
return [
|
|
Document(),
|
|
History(),
|
|
Paragraph(),
|
|
Text(),
|
|
Bold(),
|
|
Italic(),
|
|
Code(),
|
|
CodeBlock(),
|
|
Heading(),
|
|
HardBreak(),
|
|
Strike(),
|
|
Underline(),
|
|
Blockquote(),
|
|
HorizontalRule(),
|
|
BulletList(),
|
|
OrderedList(),
|
|
ListItem(),
|
|
]
|
|
}
|