diff --git a/src/components/StructuredEditor.js b/src/components/StructuredEditor.js
index 20b1f1cb..ca81eee8 100644
--- a/src/components/StructuredEditor.js
+++ b/src/components/StructuredEditor.js
@@ -144,6 +144,7 @@ const StructuredEditor = ({ onDataChange, initialData = {} }) => {
// Try to preserve value when changing types if possible
switch (newType) {
case 'string':
+ case 'longtext':
current[key] = currentValue === null ? '' : currentValue.toString();
break;
case 'number':
@@ -314,17 +315,31 @@ const StructuredEditor = ({ onDataChange, initialData = {} }) => {
) : (
- updateValue(e.target.value, path)}
- className="flex-1 px-2 py-1 text-sm border border-gray-300 dark:border-gray-600 rounded bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 min-w-0"
- placeholder="Value"
- />
+ typeof value === 'string' && value.includes('\n') ? (
+