Skip to content

Commit f437189

Browse files
committedJan 26, 2025
[flat-json-widget] Preserve newline characters in input fields #19
Fixed an issue where newline characters () in input fields were removed when saving via the HTML form. Updated the logic to ensure newline characters are preserved in both display and saved data. Fixes #19
1 parent d34bba6 commit f437189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎flat_json_widget/static/flat-json-widget/js/flat-json-widget.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ var initJsonKeyValueWidget = function(fieldName, inlinePrefix) {
103103
newValue[key] = value;
104104
});
105105

106-
// update textarea value
106+
// update textarea value
107107
$(rawTextarea).val(JSON.stringify(newValue, null, 4));
108108
};
109109

0 commit comments

Comments
 (0)