The latest version of the ONLYOOFFICE document has been released, including multiple updates that provide richer features, more flexible customization options, and stronger performance. If developers or integrators want to use enhanced APIs, this version is worth exploring in depth.
Chart Viewer
The newly added chart viewer supports web, desktop, and mobile web versions, and can open chart files without the need for third-party applications.
API location: Diagram document type has been added with the documentType parameter.
Support new file formats
ONLYOOFFICE continues to expand file format compatibility. Version 9.0 supports viewing Markdown and OpenDocument graphic files.
API location: Added support for opening ODG and MD formats.
Added vsdm, vsdx, vssm, vssx, vstm, and vstx format conversion functions in conjunction with the release of the chart viewer.
Expand custom options
Version 9.0 significantly enhances customization capabilities, allowing end users to customize their user experience according to their needs.
New interface theme
Introduce two themes, modern light and modern dark, to optimize the visual effects of the editor.
API location: editorConfig. customization. uiTheme parameter adds theme white and theme night theme IDs.
Simplified Chinese interface font size selection
The new parameters ensure accurate display of Simplified Chinese layout font size and support switching between Western or traditional Chinese styles.
API location: editorConfig. customization. force Western FontSize parameter (default value false).
Hide user profile picture
The new parameters can control the display of user avatars in the editor header, creating a simple and interference free interface.
API location: editorConfig. customization. layout. header. user parameter (default value true).
Preloading performance optimization
Starting from version 9.0, it supports preloading static resources (HTML/CSS/JS/fonts) to the browser cache before opening files, accelerating the initial loading of document editors.
Provide two ways:
1) Use it? Preload=placeholder parameter
2) Manually insert preloaded iframe
API enhancement for plugins and macros
Custom button for content control: Create a dedicated button using the Asc.ButtonContentControl class, define the operation with attachoClick, and add functional icons.
Locate slides by index: Quickly jump to the specified slide by adding the GooSlide method.
expression.GoToSlide(slideNumber);
Content Control List Element: Added ContentControlListElement enumeration to simplify document content control management.
Asynchronous computation: Manage asynchronous requests in custom functions created by macros.
New Example
The latest API documentation adds more out of the box Document Builder and macro examples to improve development efficiency.
Builder Framework
User feedback report generation, order data to invoice conversion, employment agreement generation, personalized investment plan generation, inventory report generation
Start up market analysis presentation, commercial quotation generation, employee training plan development, annual business report generation
macro
Add examples of various editor types:
Image resizing (PDF editor), content control list creation (document editor), table sorting (document editor)
Delete duplicate worksheets (Spreadsheet Editor), data table splitting (Spreadsheet Editor), indentation adjustment (Presentation Editor), empty paragraph deletion (Presentation Editor), empty text box removal (Presentation Editor)
Office API
The Office JavaScript API 9.0 version has added a large number of methods, covering:
Content controls, custom XML, forms, custom properties, core functionality, scope operations, drawing, presentation, notes page