Two development details see: http://blog.csdn.net/hotqin888/article/details/79337881
Https://api.onlyoffice.com/editors/basic read the document carefully.
This ONLYOFFCE for real-time document collaboration, in the LAN of a computer installed services, can be implemented on any computer while opening word,excel,ppt simultaneous editing, it is convenient office collaboration.
The commercial version is charged, so build their own open source version, which can be used free of charge.
The server is built in the above article, here is how to use beego two times development, to achieve the management of the document.
Look at its API to solve a few problems:
When the last Open browser tab closes, the saver document is triggered, which requires Beego to download the latest document on the server and save it to your own service;
Opening the document requires a unique key, everyone opens the document, this key is unique, with the update time of the document stored on the Beego server as the key bar.
Returns a callback,
c.data["json"] = map[string]interface{}{"error": 0}
C.servejson ()
Development details see http://blog.csdn.net/hotqin888/article/details/79337881