Hi all,
For a node I developed, I'm trying to implement an export/import function of the node configuration to/from an xml file. This because the xml file is used to make the same configuration in the program it's talking to.
The export functionality is done, the import functionality has the file dialog selection and xml parsing. The only struggle is setting the input fields in a correct way.
Problem one:
I set the value of an input field like this. But it's only visible after reopening the node-editor.
$("#node-input-listId").val( newValue );
Problem two:
The node uses a multi-line editor (preferable the Monaco editor as it has the syntax highlight for the needed language). But I haven't found a way to set the text inside the editor. Does the node-red wrapper provide a function for that like editor.setValue()
? If not what will be the most correct way to do this?
Thanks in advance