This commit is contained in:
Philipp Kühn 2021-02-12 00:23:03 +01:00
parent e5deb5e3d4
commit e3a34f78b8

View File

@ -18,21 +18,21 @@ import OrderedList, { OrderedListOptions } from '@tiptap/extension-ordered-list'
import ListItem, { ListItemOptions } from '@tiptap/extension-list-item'
export function defaultExtensions(options?: Partial<{
dropursor: DropcursorOptions,
paragraph: ParagraphOptions,
history: HistoryOptions,
bold: BoldOptions,
italic: ItalicOptions,
code: CodeOptions,
codeBlock: CodeBlockOptions,
heading: HeadingOptions,
hardBreak: HardBreakOptions,
strike: StrikeOptions,
blockquote: BlockquoteOptions,
horizontalRule: HorizontalRuleOptions,
bulletList: BulletListOptions,
orderedList: OrderedListOptions,
listItem: ListItemOptions,
dropursor: Partial<DropcursorOptions>,
paragraph: Partial<ParagraphOptions>,
history: Partial<HistoryOptions>,
bold: Partial<BoldOptions>,
italic: Partial<ItalicOptions>,
code: Partial<CodeOptions>,
codeBlock: Partial<CodeBlockOptions>,
heading: Partial<HeadingOptions>,
hardBreak: Partial<HardBreakOptions>,
strike: Partial<StrikeOptions>,
blockquote: Partial<BlockquoteOptions>,
horizontalRule: Partial<HorizontalRuleOptions>,
bulletList: Partial<BulletListOptions>,
orderedList: Partial<OrderedListOptions>,
listItem: Partial<ListItemOptions>,
}>) {
return [
Document,