From c5006e9dfe728414cb798dc5e6e6e746c95f7118 Mon Sep 17 00:00:00 2001 From: Fizz <13631686641@sina.cn> Date: Mon, 6 Mar 2023 19:47:53 +0800 Subject: [PATCH] Update sample.js --- .../adding-a-command-to-an-editor-instance/sample.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/website/data/playground-samples/interacting-with-the-editor/adding-a-command-to-an-editor-instance/sample.js b/website/src/website/data/playground-samples/interacting-with-the-editor/adding-a-command-to-an-editor-instance/sample.js index 771d1ca20a..9e030460bc 100644 --- a/website/src/website/data/playground-samples/interacting-with-the-editor/adding-a-command-to-an-editor-instance/sample.js +++ b/website/src/website/data/playground-samples/interacting-with-the-editor/adding-a-command-to-an-editor-instance/sample.js @@ -28,7 +28,7 @@ editor.addCommand( monaco.KeyCode.Tab, function () { // services available in `ctx` - alert("my command is executing!"); + console.log("my command is executing!"); }, "myCondition1 && myCondition2" ); @@ -36,7 +36,7 @@ editor.addCommand( myCondition1.set(true); setTimeout(function () { - alert("now enabling also myCondition2, try pressing Tab!"); + console.log("now enabling also myCondition2, try pressing Tab!"); myCondition2.set(true); // you can use myCondition2.reset() to go back to the default }, 2000);