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 28613d9e0a7..5b98ef8e7c3 100644 --- a/addons/web_editor/static/src/js/backend/field_html.js +++ b/addons/web_editor/static/src/js/backend/field_html.js @@ -485,12 +485,6 @@ var FieldHtml = basic_fields.DebouncedField.extend(TranslatableFieldMixin, { top: '+5px', }); this.$el.append($button); - // force source editor if it contains multiline Jinja directives - if (jinjaRegex.test(this._getValue())) { - var layoutInfo = $.summernote.core.dom.makeLayoutInfo(this.wysiwyg.$editor); - layoutInfo.toolbar().hide(); - $.summernote.pluginEvents.codeview(undefined, undefined, layoutInfo, true); - } }, /** * @private