From ec392a7f9a9bdb9e535ff4d8e97a008146d9a1d3 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 12 Oct 2016 19:54:43 +0100 Subject: [PATCH] contenteditable fields not handled in config nodes Fixes #1011 --- editor/js/ui/editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index c2e30e814..ea2e97dd4 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -979,6 +979,8 @@ RED.editor = (function() { input = $("#node-config-input-"+d); if (input.attr('type') === "checkbox") { newValue = input.prop('checked'); + } else if ("format" in configTypeDef.defaults[d] && configTypeDef.defaults[d].format !== "" && input[0].nodeName === "DIV") { + newValue = input.text(); } else { newValue = input.val(); }