From 114758c383fa3997853e55f257606c1c0e328163 Mon Sep 17 00:00:00 2001 From: langxm Date: Wed, 14 Oct 2026 15:35:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(M7.9c):=20=E5=88=A0=E9=99=A4=20stSaved=20?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E5=90=8E=E6=B8=85=E7=90=86=20Monaco/CM=20cha?= =?UTF-8?q?nge=20=E4=BA=8B=E4=BB=B6=E4=B8=AD=E7=9A=84=E7=A9=BA=E5=BC=95?= =?UTF-8?q?=E7=94=A8(=E9=98=B2=E6=AF=8F=E6=AC=A1=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=8A=9B=20TypeError=20=E4=B8=AD=E6=96=AD=E4=BF=9D=E5=AD=98/?= =?UTF-8?q?=E9=A2=84=E8=A7=88)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index f5aa537..d04afa9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -396,7 +396,7 @@ function bootCodeMirror(){ value: defaultCode(), extraKeys:{'Cmd-Enter':()=>doAction(), 'Ctrl-Enter':()=>doAction(), 'Shift-Enter':()=>doAction()} }); - CM.on('change', function(){ document.getElementById('stSaved').textContent='代码自动保留 ✓'; if(!isMdLang()) lspCheck(); saveCodeToLS(); mdLive(); }); + CM.on('change', function(){ if(!isMdLang()) lspCheck(); saveCodeToLS(); mdLive(); }); ED = { setValue:function(v){ CM.setValue(v); }, getValue:function(){ return CM.getValue(); }, @@ -422,7 +422,7 @@ function bootMonaco(){ /* 注意:Monaco 无 KeyMod.CmdCmd(undefined|Enter 会变成裸 Enter 绑定导致回车即提交)——必须用 CtrlCmd */ ed.addCommand(MONACO_LIB.KeyMod.CtrlCmd|MONACO_LIB.KeyCode.Enter, function(){ doAction(); }); ed.addCommand(MONACO_LIB.KeyMod.Shift|MONACO_LIB.KeyCode.Enter, function(){ doAction(); }); - ed.onDidChangeModelContent(function(){ document.getElementById('stSaved').textContent='代码自动保留 ✓'; if(!isMdLang()) lspCheck(); saveCodeToLS(); mdLive(); }); + ed.onDidChangeModelContent(function(){ if(!isMdLang()) lspCheck(); saveCodeToLS(); mdLive(); }); window.__FL_ED=ed; ED = { setValue:function(v){ ed.setValue(v); },