Skip to content
Snippets Groups Projects
Commit 906f72d4 authored by Renaud Thiry's avatar Renaud Thiry
Browse files

[FIX] web_editor: hide codeview when readonly

In 2389f77c
containsComplexHTML was added to allow editing of html content
that would otherwise break when inserted as-is in a DOM

For this we added a rule to always display the code view toggle button.
This should not be the case when the field is marked as readonly.

Switching to the code view in readonly mode will cause a traceback.

task-3255777

Part-of: odoo/odoo#118423
parent 76a5a76d
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment