You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
656 B
JavaScript
25 lines
656 B
JavaScript
7 years ago
|
config = {
|
||
|
"document": {
|
||
7 years ago
|
"fileType": "xlsx",
|
||
7 years ago
|
"key": "Khirz6zTPdfd7",
|
||
7 years ago
|
"title": "test.xlsx",
|
||
|
"url": "/onlyoffice/test.xlsx"
|
||
7 years ago
|
},
|
||
7 years ago
|
"documentType": "spreadsheet",
|
||
7 years ago
|
"editorConfig": {
|
||
|
"user": {
|
||
|
"id": "c0c3bf82-20d7-4663-bf6d-7fa39c598b1d",
|
||
|
"name": "John Smith"
|
||
|
}
|
||
|
},
|
||
|
"events": {
|
||
7 years ago
|
"onDocumentStateChange": function(evt) { console.log("in change"); },
|
||
|
"onReady": function(evt) { console.log("in onReady"); }
|
||
7 years ago
|
}
|
||
|
};
|
||
7 years ago
|
window.onbeforeunload = null;
|
||
7 years ago
|
|
||
|
|
||
|
var docEditor = new DocsAPI.DocEditor("placeholder", config);
|
||
|
|