I forgot to add my flow:
[
{
"id": "0c5ac31dc4748b62",
"type": "ui_template",
"z": "74f191ff.db063",
"group": "e84cebe8384622b0",
"name": "Preview",
"order": 1,
"width": "12",
"height": "10",
"format": "<link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css\">\n<script src=\"//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js\"></script>\n<script>\n hljs.highlightAll();\n</script>\n\n<div ng-bind-html=\"msg.payload\"></div>\n<pre><code id=\"highlightpreview\">\n#!/bin/bash\n\n###### CONFIG\nACCEPTED_HOSTS=\"/root/.hag_accepted.conf\"\nBE_VERBOSE=false\n\nif [ \"$UID\" -ne 0 ]\nthen\necho \"Superuser rights required\"\nexit 2\nfi\n\ngenApacheConf(){\necho -e \"# Host ${HOME_DIR}$1/$2 :\"\n}\n\necho '\"quoted\"' | tr -d \\\" > text.txt\n </code></pre>",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 2480,
"y": 4420,
"wires": [
[]
]
},
{
"id": "30c334c98b3fdae4",
"type": "ui_template",
"z": "74f191ff.db063",
"group": "e84cebe8384622b0",
"name": "Textarea",
"order": 1,
"width": "12",
"height": "10",
"format": "<textarea id=\"texteditor\" width=\"100%\" rows=\"12\" >{{msg.payload}}</textarea>\n<button type=\"button\" onclick=\"updatepreview();\">Update</button>\n\n<script>\n\n\nupdatepreview = function() {\n\n var text = document.getElementById(\"texteditor\").value;\n document.getElementById(\"highlightpreview\").innerHTML = text;\n // scope.send({payload:text})\n return;\n}\n\n \n\n\n</script>\n\n",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 2300,
"y": 4420,
"wires": [
[]
]
},
{
"id": "e84cebe8384622b0",
"type": "ui_group",
"name": "File Editor",
"tab": "aa01ccb9a2401b9a",
"order": 1,
"disp": true,
"width": "24",
"collapse": false,
"className": ""
},
{
"id": "aa01ccb9a2401b9a",
"type": "ui_tab",
"name": "File Editor",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]
Btw, who do I make this to appear in a single line?