Change document view in JavaScript (ES5) Document editor control

22 Jun 20261 minute to read

How to change the document view in DocumentEditor component

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

var docEdit = new ej.documenteditor.DocumentEditor({ layoutType: 'Continuous'});

Note: Default value of layoutType in DocumentEditor component is Pages.

How to change the document view in DocumentEditorContainer component

DocumentEditorContainer component allows you to change the view to web layout and print using the layoutType property with the supported LayoutType.

var container = new ej.documenteditor.DocumentEditorContainer({ layoutType: "Continuous" });

Note: Default value of layoutType in DocumentEditorContainer component is Pages.