瀏覽代碼

delete comment

reiji-h 2 年之前
父節點
當前提交
c43ba2fa64
共有 1 個文件被更改,包括 1 次插入8 次删除
  1. 1 8
      apps/app/src/components/PageEditor/PageEditor.tsx

+ 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]);