mirror of
https://github.com/bringout/oca-ocb-web.git
synced 2026-04-19 03:52:05 +02:00
web_editor was removed in Odoo 19.0 and replaced by html_editor
and html_builder. The old web_editor was incorrectly included in
the 19.0 vanilla import.
🤖 assisted by claude
13 lines
445 B
JavaScript
13 lines
445 B
JavaScript
import { test } from "@odoo/hoot";
|
|
import { testEditor } from "./_helpers/editor";
|
|
|
|
test("should remove comment node inside editable content during sanitize", async () => {
|
|
await testEditor({
|
|
contentBefore: "<p>ab<!-- comment -->cd</p>",
|
|
contentAfter: "<p>abcd</p>",
|
|
});
|
|
await testEditor({
|
|
contentBefore: "<p>ab<!-- comment -->cd<!-- Another comment --></p>",
|
|
contentAfter: "<p>abcd</p>",
|
|
});
|
|
});
|