Explorar el Código

WIP: render page with react component

fix scroll sync
Yuki Takei hace 8 años
padre
commit
2d931e67ef
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  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}
         />