소스 검색

WIP: render page with react component

fix scroll sync
Yuki Takei 8 년 전
부모
커밋
2d931e67ef
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      resource/js/components/PageEditor/Preview.js

+ 4 - 3
resource/js/components/PageEditor/Preview.js

@@ -18,11 +18,12 @@ export default class Preview extends React.Component {
     const renderMathJaxInRealtime = this.props.previewOptions.renderMathJaxInRealtime;
 
     return (
-      <div className="page-editor-preview-body">
-        <RevisionBody
+      <div className="page-editor-preview-body"
           ref={(elm) => {
             this.props.inputRef(elm);
-          }}
+          }}>
+
+        <RevisionBody
           {...this.props}
           renderMathJaxInRealtime={renderMathJaxInRealtime}
         />