tiptap/packages/vue-starter-kit/index.ts

41 lines
1.2 KiB
TypeScript
Raw Normal View History

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-code-block'
2020-08-13 20:14:28 +08:00
import Heading from '@tiptap/extension-heading'
2020-09-10 17:50:34 +08:00
import HardBreak from '@tiptap/extension-hard-break'
2020-09-10 17:43:09 +08:00
import Strike from '@tiptap/extension-strike'
import Underline from '@tiptap/extension-underline'
2020-09-10 18:10:24 +08:00
import Blockquote from '@tiptap/extension-blockquote'
2020-09-10 18:28:14 +08:00
import HorizontalRule from '@tiptap/extension-horizontal-rule'
2020-09-11 04:29:15 +08:00
import BulletList from '@tiptap/extension-bullet-list'
2020-09-23 03:54:52 +08:00
import OrderedList from '@tiptap/extension-ordered-list'
2020-09-11 04:29:15 +08:00
import ListItem from '@tiptap/extension-list-item'
2020-08-13 20:14:28 +08:00
export function defaultExtensions() {
return [
2020-09-09 05:44:45 +08:00
Document(),
History(),
Paragraph(),
Text(),
Bold(),
Italic(),
Code(),
CodeBlock(),
Heading(),
2020-09-10 17:50:34 +08:00
HardBreak(),
2020-09-10 17:43:09 +08:00
Strike(),
Underline(),
2020-09-10 18:10:24 +08:00
Blockquote(),
2020-09-10 18:28:14 +08:00
HorizontalRule(),
2020-09-11 04:29:15 +08:00
BulletList(),
2020-09-23 03:54:52 +08:00
OrderedList(),
2020-09-11 04:29:15 +08:00
ListItem(),
2020-08-13 20:14:28 +08:00
]
}