[FIX] web_editor: use the proper serialize method

Use the method serializeNode of the editor rather than directly
the one from utils  in order to only serialize when the collaboration
is active.

closes odoo/odoo#76143

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
Nicolas Bayet
2021-09-08 10:22:06 +00:00
parent 4c03a56dab
commit 0a0a108969
@@ -904,7 +904,7 @@ export class OdooEditor extends EventTarget {
type: 'add',
append: 1,
id: node.oid,
node: serializeNode(node),
node: this.serializeNode(node),
})),
id: this._generateId(),
clientId: this.clientId,