From ec5c73491698d3d19566a1ec9c2fafcaccf9ce14 Mon Sep 17 00:00:00 2001 From: Daniel Eriksson Date: Fri, 29 Nov 2024 10:44:04 +0100 Subject: [PATCH] Call normalize node with options --- frontend/src/plate/plugins/normalize-node.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/plate/plugins/normalize-node.ts b/frontend/src/plate/plugins/normalize-node.ts index 6636618fd..2afa978b3 100644 --- a/frontend/src/plate/plugins/normalize-node.ts +++ b/frontend/src/plate/plugins/normalize-node.ts @@ -75,9 +75,9 @@ export const normalizeNodePlugin = createPlatePlugin({ const { normalizeNode } = editor; // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: ¯\_(ツ)_/¯ - editor.normalizeNode = ([node, path]) => { + editor.normalizeNode = ([node, path], opts) => { if (!isElement(node)) { - return normalizeNode([node, path]); + return normalizeNode([node, path], opts); } if (node.type === undefined) { @@ -149,7 +149,7 @@ export const normalizeNodePlugin = createPlatePlugin({ LogLevel.ERROR, ); - return normalizeNode([node, path]); + return normalizeNode([node, path], opts); } if (node.children.length === 0) { @@ -196,7 +196,7 @@ export const normalizeNodePlugin = createPlatePlugin({ } } - normalizeNode([node, path]); + normalizeNode([node, path], opts); }; return editor;