From bca1a073f7f5348f9fcecaf45aa58d77ee9d0937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Tue, 24 Sep 2024 17:25:06 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=A4=9A=E4=B8=AA=E6=80=9D=E7=BB=B4=E5=AF=BC=E5=9B=BE?= =?UTF-8?q?=E5=AE=9E=E4=BE=8B=E6=97=B6=E5=85=AC=E5=BC=8F=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E4=BC=9A=E5=A4=9A=E6=AC=A1=E6=89=A9=E5=B1=95Quill=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/plugins/Formula.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/simple-mind-map/src/plugins/Formula.js b/simple-mind-map/src/plugins/Formula.js index af7e49fb..e6b9db1c 100644 --- a/simple-mind-map/src/plugins/Formula.js +++ b/simple-mind-map/src/plugins/Formula.js @@ -3,6 +3,8 @@ import Quill from 'quill' import { getChromeVersion, htmlEscape } from '../utils/index' import { getBaseStyleText, getFontStyleText } from './FormulaStyle' +let extended = false + // 数学公式支持插件 // 该插件在富文本模式下可用 class Formula { @@ -50,6 +52,9 @@ class Formula { // 修改formula格式工具 extendQuill() { + if (extended) return + extended = true + const QuillFormula = Quill.import('formats/formula') const self = this