diff --git a/lib/core/src/node-view.ts b/lib/core/src/node-view.ts index f2efcf66a..d96d90d4b 100644 --- a/lib/core/src/node-view.ts +++ b/lib/core/src/node-view.ts @@ -297,7 +297,10 @@ export function saveRenderHandlers( editorContainer: HTMLElement, handlers: RenderHandlers, ) { - if (renderHandlersCache.has(editorContainer)) { + if ( + renderHandlersCache.has(editorContainer) && + renderHandlersCache.get(editorContainer) !== handlers + ) { throw new Error( 'It looks like renderHandlers were already set by someone else.', );