feat: 新增 WYSIWYG 编辑器功能和相关工具栏事件处理

This commit is contained in:
2026-04-10 16:18:01 +08:00
parent 40b77471b5
commit f20b7aa61c
128 changed files with 16048 additions and 84 deletions

View File

@@ -0,0 +1,10 @@
import {highlightToolbarIR} from "../ir/highlightToolbarIR";
import {highlightToolbarWYSIWYG} from "../wysiwyg/highlightToolbarWYSIWYG";
export const highlightToolbar = (vditor: IVditor) => {
if (vditor.currentMode === "wysiwyg") {
highlightToolbarWYSIWYG(vditor);
} else if (vditor.currentMode === "ir") {
highlightToolbarIR(vditor);
}
};