Skip to content

Commit 4061c07

Browse files
authored
Merge pull request #19 from Steve-Mcl/v3-monaco-default
Default to monaco editor for V3
2 parents e35a8c4 + 71134c9 commit 4061c07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/commands/init/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ async function promptEditorSettings() {
265265
type: 'select',
266266
name: 'codeEditor',
267267
message: 'Select the text editor component to use in the Node-RED Editor',
268-
initial: 'ace',
269-
choices: [ {name:"ace (default)", value:"ace"}, {name:"monaco (new for 2.0)", value:"monaco"}],
268+
initial: 'monaco',
269+
choices: [ {name:"monaco (default)", value:"monaco"}, {name:"ace", value:"ace"} ],
270270
result(value) {
271271
return this.find(value).value;
272272
}

lib/commands/init/resources/settings.js.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ module.exports = {
351351
},
352352
codeEditor: {
353353
/** Select the text editor component used by the editor.
354-
* Defaults to "ace", but can be set to "ace" or "monaco"
354+
* As of Node-RED V3, this defaults to "monaco", but can be set to "ace" if desired
355355
*/
356356
lib: "{{codeEditor}}",
357357
options: {
@@ -363,7 +363,7 @@ module.exports = {
363363
*/
364364
theme: "vs",
365365
/** other overrides can be set e.g. fontSize, fontFamily, fontLigatures etc.
366-
* for the full list, see https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.istandaloneeditorconstructionoptions.html
366+
* for the full list, see https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IStandaloneEditorConstructionOptions.html
367367
*/
368368
//fontSize: 14,
369369
//fontFamily: "Cascadia Code, Fira Code, Consolas, 'Courier New', monospace",

0 commit comments

Comments
 (0)