forked from yikoyu/vuetify-pro-tiptap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathordered-list.ts
More file actions
23 lines (19 loc) · 738 Bytes
/
Copy pathordered-list.ts
File metadata and controls
23 lines (19 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import type { OrderedListOptions as TiptapOrderedListOptions } from '@tiptap/extension-list'
import type { GeneralOptions } from '@/type'
import { OrderedList as TiptapOrderedList } from '@tiptap/extension-list'
import { OrderedListActionButton } from './components/ActionButton'
export interface OrderedListOptions extends TiptapOrderedListOptions, GeneralOptions<OrderedListOptions> {}
export const OrderedList = /* @__PURE__ */ TiptapOrderedList.extend<OrderedListOptions>({
addOptions() {
return {
...this.parent?.() as TiptapOrderedListOptions,
button: ({ editor, t }) => ({
component: OrderedListActionButton,
componentProps: {
editor,
t,
},
}),
}
},
})