How to Change Document View in React DOCX Editor

27 Aug 20261 minute to read

How to change the document view in the DOCX Editor component

React DOCX Editor (Document Editor) allows you to change the view to web layout or print layout using the layoutType property with the supported LayoutType.

<DocumentEditorComponent id="container" layoutType={'Continuous'} />

NOTE

Default value of layoutType in the DOCX Editor component is Pages.

How to change the document view in the DocumentEditorContainer component

The Document Editor Container component allows you to change the view to web layout or print layout using the layoutType property with the supported LayoutType.

<DocumentEditorContainerComponent id="container" layoutType={'Continuous'} enableToolbar={true}/>

NOTE

Default value of layoutType in the Document Editor Container component is Pages.