From 7f6c53dfcbc8952ca9eee76b9c4af70fea3c1bf1 Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Mon, 28 Nov 2022 15:15:06 +0530 Subject: [PATCH] fix: add new line after embedding files fix: sync icon direction --- packages/icons/src/Icons/ic-sync.svg | 2 +- .../SuperEditor/Plugins/EncryptedFilePlugin/FilePlugin.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/icons/src/Icons/ic-sync.svg b/packages/icons/src/Icons/ic-sync.svg index b93f0ba9d..43eb3bad3 100644 --- a/packages/icons/src/Icons/ic-sync.svg +++ b/packages/icons/src/Icons/ic-sync.svg @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/packages/web/src/javascripts/Components/NoteView/SuperEditor/Plugins/EncryptedFilePlugin/FilePlugin.ts b/packages/web/src/javascripts/Components/NoteView/SuperEditor/Plugins/EncryptedFilePlugin/FilePlugin.ts index 65209b582..a5ea6863e 100644 --- a/packages/web/src/javascripts/Components/NoteView/SuperEditor/Plugins/EncryptedFilePlugin/FilePlugin.ts +++ b/packages/web/src/javascripts/Components/NoteView/SuperEditor/Plugins/EncryptedFilePlugin/FilePlugin.ts @@ -26,6 +26,8 @@ export default function FilePlugin(): JSX.Element | null { if ($isRootOrShadowRoot(fileNode.getParentOrThrow())) { $wrapNodeInElement(fileNode, $createParagraphNode).selectEnd() } + const newLineNode = $createParagraphNode() + $insertNodes([newLineNode]) return true },