[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:
Achraf (abz)
2020-11-04 17:33:40 +00:00
parent c555cdca62
commit daa777bb01
@@ -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);