@rtdui/editor
Version:
React rich text editor based on tiptap
25 lines (21 loc) • 558 B
JavaScript
'use client';
;
var extensionTable = require('@tiptap/extension-table');
var state = require('@tiptap/pm/state');
const CustomTable = extensionTable.Table.extend({
addProseMirrorPlugins() {
const { View, cellMinWidth } = this.options;
return [
...this.parent?.() ?? [],
new state.Plugin({
props: {
nodeViews: {
[this.name]: (node, view) => new View(node, cellMinWidth, view)
}
}
})
];
}
});
exports.CustomTable = CustomTable;
//# sourceMappingURL=table.cjs.map