Open Steve-Mcl opened 3 years ago
@Steve-Mcl Have you made any progress on switching to monaco? I'd like to try it out
@YAMLcase Monaco is now the default in Node-RED v3.
I have been running node-red with monaco for over 1 year (as have many others)
I'd like to try it out
Then enable as described in the link above OR better still, upgrade to node-red v3.0.0
The issue raised here is to request the author to fix their node as it currently does NOT use the provided node-red APIs when building the edit panel in node-red (essentially, this node is stuck on ACE and come node-red V4 will completely fail as we will be deleting ACE completely)
Hi,
node-red 2.0.0 has a new additional editor - see here : https://discourse.nodered.org/t/node-red-2-0-0-beta-1-released/46990
It can be enabled in settings.js as described in the post.
However, as your node does not use the built in API to build the code editor, your node continues to use the ACE editor.
If you wish to support the users choice, you can fix this up be doing the following...
in
oneditprepare
, replace all of this...and in
oneditsave
change the linedelete this.editor;
tothis.editor.destroy();
NOTES: At present, the Monaco editor only does syntax highlighting for python (same as ACE editor) but I will eventually be adding python snippets like this...