Kaynağa Gözat

delete comment

reiji-h 2 yıl önce
ebeveyn
işleme
c43ba2fa64

+ 1 - 8
apps/app/src/components/PageEditor/PageEditor.tsx

@@ -338,20 +338,13 @@ export const PageEditor = React.memo((props: Props): JSX.Element => {
           // modify to "![fileName](url)" syntax
           insertText = `!${insertText}`;
         }
-        // TODO: implement
-        // refs: https://redmine.weseek.co.jp/issues/126528
-        // editorRef.current.insertText(insertText);
+
         codeMirrorEditor?.insertText(insertText);
       }
       catch (e) {
         logger.error('failed to upload', e);
         toastError(e);
       }
-      finally {
-        // TODO: implement
-        // refs: https://redmine.weseek.co.jp/issues/126528
-        // editorRef.current.terminateUploadingState();
-      }
     });
 
   }, [codeMirrorEditor, currentPagePath, pageId]);