UNPKG

@rtdui/editor

Version:

React rich text editor based on tiptap

31 lines (27 loc) 665 B
'use client'; 'use strict'; var core = require('@tiptap/core'); var mathKatexInlinePlugin = require('./math-katex-inline-plugin.cjs'); const MathKatexInline = core.Extension.create({ name: "mathKatex", // Node type // 扩展配置 addOptions() { return { katexOptions: {} }; }, // ProseMirror插件 addProseMirrorPlugins() { return [ ...this.parent?.() || [], mathKatexInlinePlugin.KatexInlinePlugin({ editor: this.editor, name: this.name, katexOptions: this.options.katexOptions }) ]; } }); exports.MathKatexInline = MathKatexInline; //# sourceMappingURL=math-katex-inline.cjs.map