diff --git a/smart-view/adapters/_adapter.js b/smart-view/adapters/_adapter.js index a5ae482f..fb0b5204 100644 --- a/smart-view/adapters/_adapter.js +++ b/smart-view/adapters/_adapter.js @@ -235,7 +235,7 @@ export class SmartViewAdapter { const smart_setting = new this.setting_class(elm); smart_setting.addTextArea(textarea => { textarea.setPlaceholder(elm.dataset.placeholder || ""); - textarea.setValue(value || ""); + textarea.setValue(Array.isArray(value) ? value.join("\n") : value || ""); let debounceTimer; textarea.onChange(async (value) => { value = value.split("\n").map(v => v.trim()).filter(v => v);