2018-02-28 10:58:35 +00:00
|
|
|
/* globals DocsAPI */
|
|
|
|
window.config = {
|
2018-01-25 10:06:58 +00:00
|
|
|
"document": {
|
2018-02-19 17:52:57 +00:00
|
|
|
"fileType": "pptx",
|
2018-01-25 10:06:58 +00:00
|
|
|
"key": "Khirz6zTPdfd7",
|
2018-02-19 17:52:57 +00:00
|
|
|
"title": "test.pptx",
|
|
|
|
"url": "/onlyoffice/test.pptx"
|
2018-01-25 10:06:58 +00:00
|
|
|
},
|
2018-02-19 17:52:57 +00:00
|
|
|
"documentType": "presentation",
|
2018-01-25 10:06:58 +00:00
|
|
|
"editorConfig": {
|
|
|
|
"user": {
|
|
|
|
"id": "c0c3bf82-20d7-4663-bf6d-7fa39c598b1d",
|
|
|
|
"name": "John Smith"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"events": {
|
2018-02-28 10:58:35 +00:00
|
|
|
"onDocumentStateChange": function (/* evt */) { console.log("in change"); },
|
|
|
|
"onReady": function (/* evt */) { console.log("in onReady"); }
|
2018-01-25 10:06:58 +00:00
|
|
|
}
|
|
|
|
};
|
2018-02-19 17:52:57 +00:00
|
|
|
window.onbeforeunload = null;
|
2018-01-25 10:06:58 +00:00
|
|
|
|
|
|
|
|
2018-02-28 10:58:35 +00:00
|
|
|
window.docEditor = new DocsAPI.DocEditor("placeholder", window.config);
|
2018-01-25 10:06:58 +00:00
|
|
|
|