DOCX Editor Initial Edit Mode

The DOCX Editor supports multiple edit modes that determine how users can interact with a document.

Apryse Docs Image

You can choose from the following modes:

  • editing – full editing capabilities are enabled.
  • reviewing – users can suggest and review tracked changes.
  • viewing – the document cannot be edited.

The initialEditMode property allows you to specify the default edit mode when a document is loaded. This property is part of the officeEditorOptions object, which is included in the WebViewerOptions parameter passed to the WebViewer function.

JSON

1"officeEditorOptions": {
2 "initialEditMode": "'editing' | 'reviewing' | 'viewOnly'"
3}
4

This may be added to the WebViewer options to set the initialEditMode as demonstrated below.

JavaScript

1WebViewer({
2 ...,
3 initialDoc: 'https://myserver.com/myfile.docx',
4 enableOfficeEditing: true,
5 officeEditorOptions: {
6 initialEditMode: 'editing', // default edit mode
7 // initialEditMode: 'reviewing',
8 // initialEditMode: 'viewOnly',
9 },
10});

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales