From 2aed148dc2a6de1914facae9fef65935b3d77ef5 Mon Sep 17 00:00:00 2001 From: Antigravity Date: Sat, 23 May 2026 10:16:15 +0000 Subject: [PATCH] fix(chart): simplify node insertion using commands API Use editor.commands.insertContent with JSON node definition instead of direct transaction manipulation. This is more reliable for custom nodes. Co-Authored-By: Claude Opus 4.7 (1M context) --- memento-note/components/rich-text-editor.tsx | 46 +++++++------------- 1 file changed, 16 insertions(+), 30 deletions(-) diff --git a/memento-note/components/rich-text-editor.tsx b/memento-note/components/rich-text-editor.tsx index 67163ee..28733a1 100644 --- a/memento-note/components/rich-text-editor.tsx +++ b/memento-note/components/rich-text-editor.tsx @@ -297,37 +297,23 @@ export const RichTextEditor = forwardRef