Document Properties
These properties define the document being edited and are typically set by theSetDocument* methods.
The absolute URL from which OnlyOffice Document Server can download the document. This URL must be accessible from the Document Server.Storage: ViewState
Access: Get/Set
Access: Get/Set
Automatically set by
SetDocumentFromBytes, SetDocumentFromFile, and SetDocumentFromUpload methods.Display name of the document shown in the editor interface. Used to determine file type extension.Storage: ViewState
Access: Get/Set
Access: Get/Set
Unique identifier for the document revision. OnlyOffice uses this to determine if a document has changed. Must be updated when document content changes.Storage: ViewState
Access: Get/Set
Access: Get/Set
URL where OnlyOffice Document Server sends editing status updates and saves the modified document. Must be accessible from the Document Server.Storage: ViewState
Access: Get/Set
Access: Get/Set
The callback handler receives POST requests with JSON payload containing document status and download URL.
Configuration Properties
URL to the OnlyOffice Document Server API JavaScript file. This is the main entry point for the editor.Access: Get/Set
Secret key for signing JWT tokens used to secure communication between your application and OnlyOffice Document Server.Access: Get/Set
The public base URL of your application used to construct absolute URLs for DocumentUrl and CallbackUrl. Required when running behind a reverse proxy or load balancer.Access: Get/Set
If not set, URLs are constructed using
Page.Request.Url, which may not work correctly behind proxies.Editor Behavior Properties
Editor mode: Valid values:
"edit" for full editing capabilities or "view" for read-only mode.Access: Get/Set"edit"- Full editing features"view"- Read-only, no editing allowed
Editor interface language code (ISO 639-1).Access: Get/SetCommon values:
"en", "es", "fr", "de", "it", "pt", "ru", "zh", etc.CSS height value for the editor container.Access: Get/SetSupports any valid CSS height value (px, %, vh, etc.)
User Properties
Unique identifier for the current user editing the document. Used for collaboration features and tracking.Access: Get/Set
Display name shown in the editor interface for the current user. Used in comments and collaboration features.Access: Get/Set
Client Integration Properties
Comma-separated list of button/control IDs that should trigger document capture. When clicked, the editor content is captured to the hidden field.Access: Get/Set
The control automatically injects JavaScript to handle the capture and trigger postback.
Client-side ID of the HTML element that contains the OnlyOffice editor iframe. Generated as
{ClientID}_editor.Access: Get onlyClient-side ID of the hidden field that stores the captured document as Base64. Used for client-side integration.Access: Get only
State Properties
JSON configuration string passed to the OnlyOffice editor JavaScript API. Generated automatically in PreRender phase.Access: Get only (set internally)Returns
"null" if no document is loaded, otherwise returns JSON with token, document, documentType, and editorConfig.Indicates whether a document has been loaded into the editor. Returns
true if DocumentUrl, DocumentName, and DocumentKey are all set.Access: Get onlyIndicates whether the user has captured edited content from the editor. Returns
true if the hidden field contains Base64 data.Access: Get onlyThis property only reflects client-side captured content, not real-time editor state. Content must be captured via
CaptureTriggerId mechanism or JavaScript API.Property Summary Table
| Property | Type | Access | Default | Description |
|---|---|---|---|---|
| DocumentUrl | string | Get/Set | null | Document download URL |
| DocumentName | string | Get/Set | null | Display name |
| DocumentKey | string | Get/Set | null | Unique revision key |
| CallbackUrl | string | Get/Set | null | Callback handler URL |
| OnlyOfficeApiUrl | string | Get/Set | (see above) | Document Server API URL |
| JwtSecret | string | Get/Set | (see above) | JWT signing secret |
| PublicBaseUrl | string | Get/Set | (see above) | Public base URL |
| Mode | string | Get/Set | ”edit” | Editor mode |
| Lang | string | Get/Set | ”es” | Interface language |
| EditorHeight | string | Get/Set | ”520px” | Container height |
| UserId | string | Get/Set | ”1” | Current user ID |
| UserDisplayName | string | Get/Set | ”Usuario” | Current user name |
| CaptureTriggerId | string | Get/Set | null | Capture button IDs |
| EditorContainerId | string | Get | - | Editor container ID |
| ConfigJson | string | Get | - | Editor configuration JSON |
| HasDocument | bool | Get | - | Has document loaded |
| HiddenFieldClientId | string | Get | - | Hidden field client ID |
| HasEditedDocument | bool | Get | - | Has captured edits |