diff --git a/addons/web_editor/static/src/js/backend/field_html.js b/addons/web_editor/static/src/js/backend/field_html.js index f5cf305a839..1141fa4c3d4 100644 --- a/addons/web_editor/static/src/js/backend/field_html.js +++ b/addons/web_editor/static/src/js/backend/field_html.js @@ -396,8 +396,10 @@ var FieldHtml = basic_fields.DebouncedField.extend(TranslatableFieldMixin, { } def.then(function () { - self.$content.on('click', 'ul.o_checklist > li', self._onReadonlyClickChecklist.bind(self)); - self.$content.on('click', '.o_stars .fa-star, .o_stars .fa-star-o', self._onReadonlyClickStar.bind(self)); + if (!self.hasReadonlyModifier) { + self.$content.on('click', 'ul.o_checklist > li', self._onReadonlyClickChecklist.bind(self)); + self.$content.on('click', '.o_stars .fa-star, .o_stars .fa-star-o', self._onReadonlyClickStar.bind(self)); + } if (self.$iframe) { // Iframe is hidden until fully loaded to avoid glitches. self.$iframe.removeClass('d-none');