# \#monaco

**URL:** https://discourse.nodered.org/tag/monaco/14.md

[Latest](https://discourse.nodered.org/latest.md) · [Categories](https://discourse.nodered.org/categories.md) · [Tags](https://discourse.nodered.org/tags.md)

---

## [Monaco spell checker](https://discourse.nodered.org/t/monaco-spell-checker/99083)

<div class="topic-metadata">

**Author:** [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Replies:** 3\
**Last updated:** [18 September 2025 06:55 UTC](https://discourse.nodered.org/t/monaco-spell-checker/99083 "2025-09-18T06:55:16Z")

</div>

Hi There, does anyone here have any idea how to add spellchecker functionality to the monaco editor in Node-RED? I know that it might well be way off-topic for a editor that is used for code but I need it for documenta…

---

## [Cannot find name 'flow' (error 2304) and red squiggle under \`msg\`](https://discourse.nodered.org/t/cannot-find-name-flow-error-2304-and-red-squiggle-under-msg/96796)

<div class="topic-metadata">

**Author:** [@xpxiong](https://discourse.nodered.org/u/xpxiong)\
**Replies:** 18\
**Last updated:** [9 May 2025 06:19 UTC](https://discourse.nodered.org/t/cannot-find-name-flow-error-2304-and-red-squiggle-under-msg/96796 "2025-05-09T06:19:25Z")

</div>

When I write 'let data = flow.get("data")' in the function node, an error will be reported

---

## [Monaco Editor Q](https://discourse.nodered.org/t/monaco-editor-q/86395)

<div class="topic-metadata">

**Author:** [@StrongTown](https://discourse.nodered.org/u/StrongTown)\
**Replies:** 5\
**Last updated:** [17 March 2024 22:08 UTC](https://discourse.nodered.org/t/monaco-editor-q/86395 "2024-03-17T22:08:00Z")

</div>

First, I gotta say I LOVE the Monaco editor. It has saved me so much time with error trapping, saved my butt from unknowingly doing stupid things and with the intelligent coloring makes coding easier to do. Love it! I…

---

## [Adding modules to monaco editor](https://discourse.nodered.org/t/adding-modules-to-monaco-editor/86153)

<div class="topic-metadata">

**Author:** [@Felipet007](https://discourse.nodered.org/u/Felipet007)\
**Replies:** 2\
**Last updated:** [5 March 2024 12:57 UTC](https://discourse.nodered.org/t/adding-modules-to-monaco-editor/86153 "2024-03-05T12:57:55Z")

</div>

Hi! I'm trying to add modules to my Monaco editor but I don't know how to access to the monaco instance for doing that. This is what I'm trying to do right now: that.initEditor = () =\> { that.editor = RED.edit…

---

## [Code editor isn't saving text](https://discourse.nodered.org/t/code-editor-isnt-saving-text/80836)

<div class="topic-metadata">

**Author:** [@jackcarey](https://discourse.nodered.org/u/jackcarey)\
**Replies:** 4\
**Last updated:** [27 August 2023 11:42 UTC](https://discourse.nodered.org/t/code-editor-isnt-saving-text/80836 "2023-08-27T11:42:48Z")

</div>

Hello, I'm creating a custom configuration node which uses a multiline code editor. However, the text entered into the editor isn't saving. Based on the instructions, I have the following: HTML element \<div id="node-co…

---

## [Cannot select/copy/paste with monaco editor on iPad/Safari](https://discourse.nodered.org/t/cannot-select-copy-paste-with-monaco-editor-on-ipad-safari/77844)

<div class="topic-metadata">

**Author:** [@thohoj](https://discourse.nodered.org/u/thohoj)\
**Replies:** 3\
**Last updated:** [23 April 2023 13:45 UTC](https://discourse.nodered.org/t/cannot-select-copy-paste-with-monaco-editor-on-ipad-safari/77844 "2023-04-23T13:45:33Z")

</div>

I cannot select text in a function node using safari on my iPad. So I cannot use copy/paste anymore (with ace it worked). I found a similar thread but it seems that the issue there was not iPad related. I can type in f…

---

## [\[HowTo\] Change default indent from 4 to 2 spaces in function nodes](https://discourse.nodered.org/t/howto-change-default-indent-from-4-to-2-spaces-in-function-nodes/75759)

<div class="topic-metadata">

**Author:** [@Subnum12](https://discourse.nodered.org/u/Subnum12)\
**Replies:** 7\
**Last updated:** [26 February 2023 14:53 UTC](https://discourse.nodered.org/t/howto-change-default-indent-from-4-to-2-spaces-in-function-nodes/75759 "2023-02-26T14:53:29Z")

</div>

As this was closed already I could not provide the solution but did run into same question. It is just simple but not documented. In settings.js go to codeEditor: {options: {tabSize: 2,}}

---

## [Custom hotkeys (key combinations) in monaco command palette](https://discourse.nodered.org/t/custom-hotkeys-key-combinations-in-monaco-command-palette/65510)

<div class="topic-metadata">

**Author:** [@ei23](https://discourse.nodered.org/u/ei23)\
**Replies:** 10\
**Last updated:** [24 July 2022 11:33 UTC](https://discourse.nodered.org/t/custom-hotkeys-key-combinations-in-monaco-command-palette/65510 "2022-07-24T11:33:07Z")

</div>

Hi 3.0 is great so far, so a huge thank you for the great work! Since i'm now also switching from ace to monaco, there a some habits that don't want to move so fast :wink: Sooo is there a possibility to set custom shor…

---

## [Shortcuts for Monaco editor](https://discourse.nodered.org/t/shortcuts-for-monaco-editor/62855)

<div class="topic-metadata">

**Author:** [@hazymat](https://discourse.nodered.org/u/hazymat)\
**Replies:** 3\
**Last updated:** [22 May 2022 06:31 UTC](https://discourse.nodered.org/t/shortcuts-for-monaco-editor/62855 "2022-05-22T06:31:43Z")

</div>

Question about the Monaco text editor, apologies if this is somewhat off-topic, please remove my post if so. But last year when this was added, I noted here on the forums, and possibly by raising an issue separately, th…

---

## [Why does monaco complain about arithmetics with Date.getTime?](https://discourse.nodered.org/t/why-does-monaco-complain-about-arithmetics-with-date-gettime/60998)

<div class="topic-metadata">

**Author:** [@maxweissboeck](https://discourse.nodered.org/u/maxweissboeck)\
**Replies:** 5\
**Last updated:** [9 April 2022 08:09 UTC](https://discourse.nodered.org/t/why-does-monaco-complain-about-arithmetics-with-date-gettime/60998 "2022-04-09T08:09:24Z")

</div>

This is the code msg.payload.forEach(element =\> { // extract the elements const tag = element.substring(0,2) const datum = element.substring(5,15) const text = element.substring(18, element.length) …

---

## [Ace / Monaco: Custom syntax highlighter](https://discourse.nodered.org/t/ace-monaco-custom-syntax-highlighter/59070)

<div class="topic-metadata">

**Author:** [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Replies:** 5\
**Last updated:** [1 March 2022 21:31 UTC](https://discourse.nodered.org/t/ace-monaco-custom-syntax-highlighter/59070 "2022-03-01T21:31:13Z")

</div>

I'm looking for a way to add a custom syntax highlighter to the Ace/Monaco editor. @knolleary stated a long time ago: Is there meanwhile an API or a hack to achieve this?

---

## [Pasting into Monaco Editor Query](https://discourse.nodered.org/t/pasting-into-monaco-editor-query/52235)

<div class="topic-metadata">

**Author:** [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Replies:** 19\
**Last updated:** [16 October 2021 13:51 UTC](https://discourse.nodered.org/t/pasting-into-monaco-editor-query/52235 "2021-10-16T13:51:16Z")

</div>

I have undoubtedly missed something somewhere but whenever I paste JavaScript into the Monaco editor any formatting is lost. What should I be doing to retain any format?
