|
6 | 6 | * @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) |
7 | 7 | */ |
8 | 8 |
|
9 | | -import { Editor, Node, Mark, Extension, mergeAttributes } from 'https://esm.sh/@tiptap/core@3.19.0'; |
10 | | -import StarterKit from 'https://esm.sh/@tiptap/starter-kit@3.19.0'; |
11 | | -import Image from 'https://esm.sh/@tiptap/extension-image@3.19.0'; |
12 | | -import TextAlign from 'https://esm.sh/@tiptap/extension-text-align@3.19.0'; |
13 | | -import { Table, TableRow, TableCell, TableHeader } from 'https://esm.sh/@tiptap/extension-table@3.19.0'; |
14 | | -import BubbleMenu from 'https://esm.sh/@tiptap/extension-bubble-menu@3.19.0'; |
15 | | -import DragHandle from 'https://esm.sh/@tiptap/extension-drag-handle@3.19.0'; |
| 9 | +import { Editor, Node, Mark, Extension, mergeAttributes } from 'https://esm.sh/@tiptap/core@3.20.0'; |
| 10 | +import StarterKit from 'https://esm.sh/@tiptap/starter-kit@3.20.0'; |
| 11 | +import Image from 'https://esm.sh/@tiptap/extension-image@3.20.0'; |
| 12 | +import TextAlign from 'https://esm.sh/@tiptap/extension-text-align@3.20.0'; |
| 13 | +import { Table, TableRow, TableCell, TableHeader } from 'https://esm.sh/@tiptap/extension-table@3.20.0'; |
| 14 | +import BubbleMenu from 'https://esm.sh/@tiptap/extension-bubble-menu@3.20.0'; |
| 15 | +import DragHandle from 'https://esm.sh/@tiptap/extension-drag-handle@3.20.0'; |
16 | 16 | import { MahoColumns, MahoColumn, COLUMN_PRESETS } from './extensions/columns.js'; |
| 17 | +import { MahoBentoGrid, MahoBentoCell, BENTO_PRESETS } from './extensions/bento.js'; |
17 | 18 |
|
18 | 19 | export { |
19 | 20 | Editor, Node, Mark, Extension, StarterKit, TextAlign, |
20 | 21 | Table, TableRow, TableCell, TableHeader, BubbleMenu, DragHandle, |
21 | 22 | MahoColumns, MahoColumn, COLUMN_PRESETS, |
| 23 | + MahoBentoGrid, MahoBentoCell, BENTO_PRESETS, |
22 | 24 | }; |
23 | 25 |
|
24 | 26 | const parseDirective = (directiveStr) => { |
@@ -118,6 +120,7 @@ export const GlobalAttributes = Extension.create({ |
118 | 120 | 'heading', 'paragraph', 'bulletList', 'orderedList', 'listItem', 'blockquote', 'codeBlock', |
119 | 121 | 'tableRow', 'tableCell', 'tableHeader', 'table', |
120 | 122 | 'mahoColumns', 'mahoColumn', |
| 123 | + 'mahoBentoGrid', 'mahoBentoCell', |
121 | 124 | ], |
122 | 125 | attributes: { |
123 | 126 | class: { |
|
0 commit comments