summaryrefslogtreecommitdiff
path: root/web_widget_ckeditor/static/src/js/field_html_override.js
blob: aa9d42bc26768f18c1512a140f0388e6b2e20cb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
    Copyright 2021 Camptocamp SA (https://www.camptocamp.com).
    @author Iván Todorovich <ivan.todorovich@camptocamp.com>
    License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
*/
odoo.define("web_widget_ckeditor.field_html_override", function (require) {
    "use strict";

    const FieldHtml = require("web_editor.field.html");
    const FieldHtmlCKEditor = require("web_widget_ckeditor.field_ckeditor");
    const field_registry = require("web.field_registry");

    field_registry.add("html_odoo", FieldHtml);
    field_registry.add("html", FieldHtmlCKEditor);
});