odoo/odoo#204885

Created by fw-bot
Merged at 7c3c8d2db4f9d7c9b9034b6e6a7d58e59b280dd2

Statuses:

label
odoo-dev:master-18.0-opw-4597744-remove_contenteditable_false_file_banner_on_save-wasa-427812-fw
head
cf990d7782b42264e3ff48c854c293237f964130
merged
7 months ago by Walid Sahli (wasa)
odoo/odoo
18.0 #204750
saas-18.1 #204869
saas-18.2 #204877
saas-18.3
saas-18.4
19.0
master #204885

[FW][FIX] html_editor: prevent file boxes from being editable by portal users

Problem:
File boxes contain elements with contenteditable=true. Once saved, portal users can edit them even when the editor is disabled.

Solution:
Use the new mechanism introduced in
69fb021, by adding o-contenteditable-true and o-contenteditable-false classes to file banners.

Steps to reproduce:
1. Navigate to Sales > Product.
2. Open any product.
3. In the Sales tab, add a banner to "Ecommerce Description".
4. Save and click Go to Website.
- Issue: The banner remains editable, even when the editor is disabled.

opw-4597744


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #204750