[FIX] website_event: Prevent event block title to be edited
Issue
- Install "Website" and "website_event"
- Try to add Event block
The title is editable
Cause
The contentEditable attribut is enabled
Solution
Disable the contentEditable attribut
opw-2367538
closes odoo/odoo#61355
X-original-commit: 77ffd6343be21ef188046f138493e1e807090c48
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
This commit is contained in:
@@ -19,6 +19,7 @@ publicWidget.registry.visitor = publicWidget.Widget.extend({
|
||||
if (data) {
|
||||
self._$loadedContent = $(data);
|
||||
|
||||
self._$loadedContent.attr('contentEditable', false);
|
||||
self._$loadedContent.addClass('o_temp_auto_element');
|
||||
self._$loadedContent.attr('data-temp-auto-element-original-content', self._originalContent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user