formula-editor-vue3
Version:
codemirror formula editor for vue3
14 lines (12 loc) • 478 B
TypeScript
import { ViewPlugin, ViewUpdate, DecorationSet } from '@codemirror/view';
/**
* @desc 创建自动匹配进行占位
* @param regexp 进行字段匹配
* @param matchHandler 对匹配进行处理
* @param category // 其他的classname
* @returns
*/
export declare const createMathPlaceholder: (regexp: RegExp, matchHandler: (match: RegExpExecArray) => string, category?: string) => ViewPlugin<{
placeholders: DecorationSet;
update(update: ViewUpdate): void;
}>;