1
0
Эх сурвалжийг харах

:art: https://github.com/Vanessa219/vditor/pull/1853

Vanessa 1 сар өмнө
parent
commit
86c2aaf43b

+ 1 - 1
CHANGELOG.md

@@ -32,7 +32,7 @@
 
 
 ### v3.11.3 / 2025-09
 ### v3.11.3 / 2025-09
 
 
-* [支持上标下标配置 `sup` `sub`](https://github.com/Vanessa219/vditor/issues/1850) `引入特性`
+* [添加 `options.preview.markdown.sup/sub` 对上下标的配置](https://github.com/Vanessa219/vditor/pull/1853) `引入特性`
 * [升级 mermaid.js 11.6.0 至 11.11.0](https://github.com/Vanessa219/vditor/issues/1857) `改进功能`
 * [升级 mermaid.js 11.6.0 至 11.11.0](https://github.com/Vanessa219/vditor/issues/1857) `改进功能`
 
 
 ### v3.11.2 / 2025-09-02
 ### v3.11.2 / 2025-09-02

+ 3 - 1
src/ts/wysiwyg/highlightToolbarWYSIWYG.ts

@@ -1150,5 +1150,7 @@ const focusToElement = (event: KeyboardEvent, range: Range) => {
 };
 };
 
 
 const customWysiwygToolbar = (vditor: IVditor, type: TWYSISYGToolbar) => {
 const customWysiwygToolbar = (vditor: IVditor, type: TWYSISYGToolbar) => {
-    vditor.options.customWysiwygToolbar(type, vditor.wysiwyg.popover);
+    if (vditor.options.customWysiwygToolbar) {
+        vditor.options.customWysiwygToolbar(type, vditor.wysiwyg.popover);
+    }
 };
 };