[FIX] web_editor: ensure valid default html value

closes odoo/odoo#63005

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
Antoine Guenet
2020-12-08 10:14:17 +00:00
parent fe93fc28eb
commit 6e90af01fc
@@ -40,7 +40,7 @@ async function loadFromTextarea(parent, textarea, options) {
const $textarea = $(textarea);
const currentOptions = Object.assign({}, options);
if (!currentOptions.value || !currentOptions.value.trim()) {
currentOptions.value = '<p><br><p>';
currentOptions.value = '<p><br></p>';
}
const wysiwyg = await createWysiwyg(parent, currentOptions);