diff --git a/lib/commands/init/index.js b/lib/commands/init/index.js index 33a3490..b6b25f6 100644 --- a/lib/commands/init/index.js +++ b/lib/commands/init/index.js @@ -265,8 +265,8 @@ async function promptEditorSettings() { type: 'select', name: 'codeEditor', message: 'Select the text editor component to use in the Node-RED Editor', - initial: 'ace', - choices: [ {name:"ace (default)", value:"ace"}, {name:"monaco (new for 2.0)", value:"monaco"}], + initial: 'monaco', + choices: [ {name:"monaco (default)", value:"monaco"}, {name:"ace", value:"ace"} ], result(value) { return this.find(value).value; } diff --git a/lib/commands/init/resources/settings.js.mustache b/lib/commands/init/resources/settings.js.mustache index 6a0c418..ce26f08 100644 --- a/lib/commands/init/resources/settings.js.mustache +++ b/lib/commands/init/resources/settings.js.mustache @@ -351,7 +351,7 @@ module.exports = { }, codeEditor: { /** Select the text editor component used by the editor. - * Defaults to "ace", but can be set to "ace" or "monaco" + * As of Node-RED V3, this defaults to "monaco", but can be set to "ace" if desired */ lib: "{{codeEditor}}", options: { @@ -363,7 +363,7 @@ module.exports = { */ theme: "vs", /** other overrides can be set e.g. fontSize, fontFamily, fontLigatures etc. - * for the full list, see https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.istandaloneeditorconstructionoptions.html + * for the full list, see https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IStandaloneEditorConstructionOptions.html */ //fontSize: 14, //fontFamily: "Cascadia Code, Fira Code, Consolas, 'Courier New', monospace",