Yao Ding 7 лет назад
Родитель
Сommit
6313160c67
1 измененных файлов с 9 добавлено и 3 удалено
  1. 9 3
      src/client/js/components/PageEditor/Editor.jsx

+ 9 - 3
src/client/js/components/PageEditor/Editor.jsx

@@ -256,11 +256,17 @@ export default class Editor extends AbstractEditor {
           onDragLeave={this.dragLeaveHandler}
           onDrop={this.dropHandler}
         >
-          {({getRootProps, getInputProps, isDragAccept, isDragReject}) => {
+          {({
+            getRootProps,
+            getInputProps,
+            isDragAccept,
+            isDragReject,
+          }) => {
             const { ref } = getInputProps();
             if (isMobile) {
               this.taEditor = ref.current;
-            } else {
+            }
+ else {
               this.cmEditor = ref.current;
             }
 
@@ -292,7 +298,7 @@ export default class Editor extends AbstractEditor {
                   )
                 }
               </div>
-            )
+            );
           }}
         </Dropzone>