reiji-h 2 лет назад
Родитель
Сommit
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
           // modify to "![fileName](url)" syntax
           insertText = `!${insertText}`;
           insertText = `!${insertText}`;
         }
         }
-        // TODO: implement
-        // refs: https://redmine.weseek.co.jp/issues/126528
-        // editorRef.current.insertText(insertText);
+
         codeMirrorEditor?.insertText(insertText);
         codeMirrorEditor?.insertText(insertText);
       }
       }
       catch (e) {
       catch (e) {
         logger.error('failed to upload', e);
         logger.error('failed to upload', e);
         toastError(e);
         toastError(e);
       }
       }
-      finally {
-        // TODO: implement
-        // refs: https://redmine.weseek.co.jp/issues/126528
-        // editorRef.current.terminateUploadingState();
-      }
     });
     });
 
 
   }, [codeMirrorEditor, currentPagePath, pageId]);
   }, [codeMirrorEditor, currentPagePath, pageId]);