I have onlyoffice installed via docker and everything seems fine (yeay!). I also have a test webserver runnning (both are local, on my mac).
My webserver has a static directory serving "default.docx" which I can load with the docEditor. However, the editor is not functional yet, and I think the problem is the callback. Here's what happens when I load the page:

Here is how I am mounting the document editor:
- Code: Select all
import uuid from 'uuid-v4'
const document = {
fileType: "doc",
key: uuid(),
title: "default.docx",
url: 'http://localhost:8080/static/default.docx',
}
//...
mountDocument () {
let docEditor = new DocsAPI.DocEditor('onlyoffice', {
document,
documentType: 'text',
// editorConfig: {
// callbackUrl: 'not sure what this is or if I need it'
// },
// plugins: {
// pluginsData: [
// "webserver or oodoc-server? /onlyoffice/addTag/config.json"
// ]
// }
})
window.Asc = docEditor
}
And here is what my docserver looks like:
- Code: Select all
Roberts-MBP:oo robertotomas$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a4c54b1f27e5 onlyoffice/documentserver "/bin/sh -c 'bash ..." About an hour ago Up About an hour 443/tcp, 0.0.0.0:8008->80/tcp eager_hoover
Roberts-MBP:oo robertotomas$ cat ~/docker.oods.sh
# sudo this
docker run -i -t -d -p 8008:80 --restart=always \
-v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
-v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
-v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql \
onlyoffice/documentserver
