Skip to content

v1.7.0

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Oct 13:45
  • added DocumentEditorPreload component for caching the editor static assets before a document is opened (ONLYOFFICE Docs 9.0 and later)
  • deprecated the legacy flat props (document_fileType, document_title, documentType, editorConfig_lang, height, type, width and all events_* callbacks) in favor of the config object
  • fix the editor not being reusable after unmounting the component, for example on a soft navigation
  • the editor placeholder is now rendered inside a wrapper element, which is kept out of layout with display: contents
  • the editor is destroyed before the component leaves the DOM, so it is torn down while it is still in the document
  • fix an editor being left behind when the component is unmounted while api.js is still loading
  • the editor is no longer rebuilt when the config is replaced with an object of the same contents, for example when the parent re-renders