From dc3e589c97a0edf663f41b7be05466303ac68b43 Mon Sep 17 00:00:00 2001 From: Ludovico7 Date: Thu, 5 Dec 2024 11:52:34 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EB=B6=99=EC=97=AC=EB=84=A3=EA=B8=B0?= =?UTF-8?q?=20=ED=95=A0=20=EB=95=8C=20=EC=88=9C=EC=84=9C=20=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EC=9C=A0=EC=A7=80=EB=90=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/features/editor/hooks/useCopyAndPaste.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/features/editor/hooks/useCopyAndPaste.ts b/client/src/features/editor/hooks/useCopyAndPaste.ts index 140c8fa..bc3d560 100644 --- a/client/src/features/editor/hooks/useCopyAndPaste.ts +++ b/client/src/features/editor/hooks/useCopyAndPaste.ts @@ -32,6 +32,7 @@ export const useCopyAndPaste = ({ sendCharDeleteOperation, sendBlockInsertOperation, sendBlockUpdateOperation, + sendBlockReorderOperation, } = useSocketStore(); const handleCopy = useCallback( @@ -183,6 +184,7 @@ export const useCopyAndPaste = ({ } currentBlockIndex += 1; }); + editorCRDT.LinkedList.updateAllOrderedListIndices(); } else { // 텍스트를 한 글자씩 순차적으로 삽입 text.split("").forEach((char, index) => { From 46f17559a688b6b04111fe3544b26e23575b1774 Mon Sep 17 00:00:00 2001 From: Ludovico7 Date: Thu, 5 Dec 2024 11:53:56 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20lint=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/features/editor/hooks/useCopyAndPaste.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/client/src/features/editor/hooks/useCopyAndPaste.ts b/client/src/features/editor/hooks/useCopyAndPaste.ts index bc3d560..36ab6d4 100644 --- a/client/src/features/editor/hooks/useCopyAndPaste.ts +++ b/client/src/features/editor/hooks/useCopyAndPaste.ts @@ -32,7 +32,6 @@ export const useCopyAndPaste = ({ sendCharDeleteOperation, sendBlockInsertOperation, sendBlockUpdateOperation, - sendBlockReorderOperation, } = useSocketStore(); const handleCopy = useCallback(