inital commit

This commit is contained in:
Torsten Schulz
2024-06-15 23:01:46 +02:00
parent 1b7fefe381
commit 61653ff407
105 changed files with 7805 additions and 524 deletions

View File

@@ -0,0 +1,27 @@
import { TableCell as TableCellOriginal } from '@tiptap/extension-table-cell';
export const CustomTableCell = TableCellOriginal.extend({
content: 'inline*',
parseHTML() {
return [
{ tag: 'td' },
];
},
renderHTML({ HTMLAttributes }) {
return ['td', HTMLAttributes, 0];
},
});
import { TableHeader as TableHeaderOriginal } from '@tiptap/extension-table-header';
export const CustomTableHeader = TableHeaderOriginal.extend({
content: 'inline*',
parseHTML() {
return [
{ tag: 'th' },
];
},
renderHTML({ HTMLAttributes }) {
return ['th', HTMLAttributes, 0];
},
});