From 0f609527df239d73bbdad7f10c440e27eb23d92f Mon Sep 17 00:00:00 2001 From: vishal padhiyar Date: Fri, 3 Feb 2023 12:43:10 +0000 Subject: [PATCH] [FIX] web_editor: missing placeholder after saving record Before this commit: Creating a new record and saving it afterwards does not show the placeholder in the description. After this commit: You will see placeholders when you create a record and save it. Task-3167136 X-original-commit: 793e48ae0478ead38ed6ac7c9a71228e2678e2c7 Part-of: odoo/odoo#113811 --- .../static/src/js/editor/odoo-editor/src/OdooEditor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js b/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js index 172d0c92d83..75b0de31e65 100644 --- a/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js +++ b/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js @@ -676,7 +676,8 @@ export class OdooEditor extends EventTarget { this._columnUi.remove(); } - resetContent(value = '


') { + resetContent(value) { + value = value || '


'; this.editable.innerHTML = value; this.sanitize(); this.historyStep(true);