ONLYOFFICE / document-editor-react

React component for ONLYOFFICE Document Server
Apache License 2.0
34 stars 7 forks source link

DocsAPI is not defined #14

Closed Aidar-Frontend-Developer closed 1 year ago

Aidar-Frontend-Developer commented 1 year ago

https://www.npmjs.com/package/@onlyoffice/document-editor-react?activeTab=readme

I tried to implement your package and when I integrated it I got the #error DocsAPI is not defined

documentServerUrl="http://documentserver/" also this one causing error - http://documentserver/web-apps/apps/api/documents/api.js - failed to load response data

aleksandrfedorov97 commented 1 year ago

Hi Aidar-Frontend-Developer, instead "http://documentserver/" you must use the address where your document server is located

Aidar-Frontend-Developer commented 1 year ago

@aleksandrfedorov97 Do you have a working example? And this one web-apps/apps/api/documents/api.js is this required file?

aleksandrfedorov97 commented 1 year ago

Aidar-Frontend-Developer, you can start document server in docker https://hub.docker.com/r/onlyoffice/documentserver/