web mailing list archives

web@odoo-community.org

Avatar

Re: [OCA/web] [RFC] web_responsive: Change behavior of html widget (#1919)

by "Enric Tobella" <notifications@github.com> - 05/05/2021 11:15:18

The necessary code to make this happen with options was:

odoo.define("my_demo_module.fields", function(require) {
    "use strict";
    var backend = require("web_editor.backend");
    backend.FieldTextHtmlSimple.include({
        _getSummernoteConfig: function() {
            var result = this._super.apply(this, arguments);
            if (this.nodeOptions.automatic_summernote_height) {
                result.height = undefined;
            }
            return result;
        },
    });
});


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Reference