From fa1bf89e70fc94f15183331258137ae2caaf1ac2 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: Sat, 12 Oct 2024 17:20:54 +0800 Subject: [PATCH] =?UTF-8?q?Feat=EF=BC=9A=E9=9D=9E=E5=AF=8C=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E6=A8=A1=E5=BC=8F=E4=B8=8B=E8=8A=82=E7=82=B9=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E7=BC=96=E8=BE=91=E6=A1=86=E5=A2=9E=E5=8A=A0=E7=B1=BB?= =?UTF-8?q?=E5=90=8D=EF=BC=8C=E6=96=B9=E4=BE=BF=E8=A6=86=E7=9B=96=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/core/render/TextEdit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/simple-mind-map/src/core/render/TextEdit.js b/simple-mind-map/src/core/render/TextEdit.js index 6aa334bd..d12616df 100644 --- a/simple-mind-map/src/core/render/TextEdit.js +++ b/simple-mind-map/src/core/render/TextEdit.js @@ -216,6 +216,7 @@ export default class TextEdit { this.registerTmpShortcut() if (!this.textEditNode) { this.textEditNode = document.createElement('div') + this.textEditNode.classList.add('smm-node-edit-wrap') this.textEditNode.style.cssText = `position:fixed;box-sizing: border-box;background-color:#fff;box-shadow: 0 0 20px rgba(0,0,0,.5);padding: ${this.textNodePaddingY}px ${this.textNodePaddingX}px;margin-left: -5px;margin-top: -3px;outline: none; word-break: break-all;` this.textEditNode.setAttribute('contenteditable', true) this.textEditNode.addEventListener('keyup', e => {