[FIX] web_editor: do to try to inline css for readonly html fields

closes odoo/odoo#35539

Signed-off-by: Christophe Simonis <chs@odoo.com>
This commit is contained in:
Christophe Simonis
2019-08-07 13:31:01 +00:00
parent 053b77fc9e
commit 4e21d6180b
@@ -396,7 +396,7 @@ FieldHtml.include({
* @override
*/
commitChanges: function () {
if (this.nodeOptions['style-inline']) {
if (this.nodeOptions['style-inline'] && this.mode === "edit") {
this._toInline();
}
return this._super();
@@ -452,7 +452,7 @@ FieldHtml.include({
* @override
*/
_onLoadWysiwyg: function () {
if (this.nodeOptions['style-inline']) {
if (this.nodeOptions['style-inline'] && this.mode === "edit") {
this._fromInline();
}
this._super();