[IMP] web: remove monokai in form widget aceEditor

Keep return line in ViewMode.

Courtesy of @odony
This commit is contained in:
Jeremy Kersten
2016-11-16 19:15:08 +01:00
parent 9a8975be46
commit e01837d2f4
2 changed files with 7 additions and 2 deletions
@@ -1584,8 +1584,8 @@ var AceEditor = common.AbstractField.extend(common.ReinitializeFieldMixin, {
if (!window.ace && !this.loadJS_def) {
this.loadJS_def = ajax.loadJS('/web/static/lib/ace/ace.odoo-custom.js').then(function () {
return $.when(ajax.loadJS('/web/static/lib/ace/mode-python.js'),
ajax.loadJS('/web/static/lib/ace/mode-xml.js'),
ajax.loadJS('/web/static/lib/ace/theme-monokai.js'));
ajax.loadJS('/web/static/lib/ace/mode-xml.js')
);
});
}
return $.when(this._super(), this.loadJS_def);
@@ -136,6 +136,11 @@
}
}
// ace editor RO
.oe_form_field_text .oe_form_text_content {
white-space: pre-wrap;
}
// Tags
.o_form_field_many2manytags {
.badge {