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); },