diff --git a/src/js/form-builder.js b/src/js/form-builder.js index e898f49c7..b034bf674 100644 --- a/src/js/form-builder.js +++ b/src/js/form-builder.js @@ -966,6 +966,8 @@ function FormBuilder(opts, element, $) { if (attribute === 'label' && !opts.disableHTMLLabels) { inputConfig.contenteditable = true attributefield += m('div', attrVal, inputConfig).outerHTML + } else if (values.type === 'textarea' && attribute === 'value') { + attributefield += m('textarea', attrVal, inputConfig).outerHTML } else { inputConfig.value = attrVal inputConfig.type = 'text'