1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #3543 from Steve-Mcl/monaco-default

Set monaco as default code editor as of v3.x
This commit is contained in:
Nick O'Leary 2022-04-25 20:06:50 +01:00 committed by GitHub
commit 10a45ece76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -359,9 +359,9 @@ 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: "ace",
lib: "monaco",
options: {
/** The follow options only apply if the editor is set to "monaco"
*
@ -371,7 +371,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",