diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index 33411bbf3..53e25bbe1 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -163,10 +163,10 @@ RED.editor = (function() { function validateNodeEditorProperty(node,defaults,property,prefix) { var input = $("#"+prefix+"-"+property); if (input.length > 0) { - var value = input.val(); - if (defaults[property].hasOwnProperty("format") && defaults[property].format !== "" && input[0].nodeName === "DIV") { - value = input.text(); - } + var value = input.val(); + if (defaults[property].hasOwnProperty("format") && defaults[property].format !== "" && input[0].nodeName === "DIV") { + value = input.text(); + } if (!validateNodeProperty(node, defaults, property,value)) { input.addClass("input-error"); } else { @@ -311,11 +311,11 @@ RED.editor = (function() { if (val == null) { val = ""; } - if (definition !== undefined && definition[property].hasOwnProperty("format") && definition[property].format !== "" && input[0].nodeName === "DIV") { - input.html(RED.text.format.getHtml(val, definition[property].format, {}, false, "en")); + if (definition !== undefined && definition[property].hasOwnProperty("format") && definition[property].format !== "" && input[0].nodeName === "DIV") { + input.html(RED.text.format.getHtml(val, definition[property].format, {}, false, "en")); RED.text.format.attach(input[0], definition[property].format, {}, false, "en"); } else { - input.val(val); + input.val(val); RED.text.bidi.prepareInput(input); } } @@ -329,7 +329,7 @@ RED.editor = (function() { * @param prefix - the prefix to use in the input element ids (node-input|node-config-input) */ function attachPropertyChangeHandler(node,definition,property,prefix) { - var input = $("#"+prefix+"-"+property); + var input = $("#"+prefix+"-"+property); if (definition !== undefined && "format" in definition[property] && definition[property].format !== "" && input[0].nodeName === "DIV") { $("#"+prefix+"-"+property).on('change keyup', function(event,skipValidation) { if (!skipValidation) { diff --git a/nodes/core/io/21-httprequest.html b/nodes/core/io/21-httprequest.html index 8a5f679ef..b11fda965 100644 --- a/nodes/core/io/21-httprequest.html +++ b/nodes/core/io/21-httprequest.html @@ -26,8 +26,8 @@
- -
+ +
diff --git a/nodes/core/io/22-websocket.html b/nodes/core/io/22-websocket.html index e4b82e3d0..ca74898f7 100644 --- a/nodes/core/io/22-websocket.html +++ b/nodes/core/io/22-websocket.html @@ -231,8 +231,8 @@