kaori 3 лет назад
Родитель
Сommit
f0c61099de

+ 6 - 1
packages/app/src/components/PageEditor/CodeMirrorEditor.jsx

@@ -988,6 +988,9 @@ class CodeMirrorEditor extends AbstractEditor {
       gutters.push('CodeMirror-lint-markers');
     }
 
+    console.log(' this.state.value', this.state.value);
+    console.log(' this.props.value', this.props.value);
+
     return (
       <React.Fragment>
 
@@ -1000,7 +1003,9 @@ class CodeMirrorEditor extends AbstractEditor {
             editor.on('paste', this.pasteHandler);
             editor.on('scrollCursorIntoView', this.scrollCursorIntoViewHandler);
           }}
-          value={this.state.value}
+          // temporary set props.value
+          // value={this.state.value}
+          value={this.props.value}
           options={{
             indentUnit: this.props.indentSize,
             theme: this.props.editorSettings.theme ?? 'elegant',

+ 0 - 2
packages/app/src/pages/[[...path]].page.tsx

@@ -276,7 +276,6 @@ const GrowiPage: NextPage<Props> = (props: Props) => {
                     }
                     <div id="page-editor-navbar-bottom-container" className="d-none d-edit-block"></div>
                     {/* <PageStatusAlert /> */}
-                    PageStatusAlert
                   </>
                 ) }
 
@@ -292,7 +291,6 @@ const GrowiPage: NextPage<Props> = (props: Props) => {
         </div>
         <footer>
           {/* <PageComments /> */}
-          PageComments
         </footer>
 
         <UnsavedAlertDialog />