diff --git a/addons/web_editor/static/src/css/backend.css b/addons/web_editor/static/src/css/backend.css index 42871187d12..2462aea3b09 100644 --- a/addons/web_editor/static/src/css/backend.css +++ b/addons/web_editor/static/src/css/backend.css @@ -5,8 +5,12 @@ line-height: initial !important; color: initial !important; } -.oe_form_field_html_text .note-editable.o_readonly { +.oe_form_field_html_text iframe.o_readonly { min-height: 1em; + width: 100%; + margin: 0; + padding: 0; + border: 0; } .oe_form_field_html_text .note-editable p { margin: initial; diff --git a/addons/web_editor/static/src/js/backend.js b/addons/web_editor/static/src/js/backend.js index acf603697b8..43f411ef988 100644 --- a/addons/web_editor/static/src/js/backend.js +++ b/addons/web_editor/static/src/js/backend.js @@ -62,9 +62,15 @@ var FieldTextHtmlSimple = widget.extend({ initialize_content: function() { var self = this; this.$textarea = this.$("textarea").val(this.get('value') || "


"); + this.$content = $(); if (this.get("effective_readonly")) { - this.$textarea.hide().after('
'); + this.$textarea.hide().after('