Enable onLocal
This commit is contained in:
parent
5827905dbd
commit
0c55c3e91b
@ -13,8 +13,8 @@ config = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
"onDocumentStateChange": function(evt) { console.log("in change"); window.top.APP.onLocal(); },
|
"onDocumentStateChange": function(evt) { console.log("in change"); window.parent.APP.onLocal(); },
|
||||||
"onReady": function(evt) { console.log("in onReady"); window.top.onOOReady(); }
|
"onReady": function(evt) { console.log("in onReady"); window.parent.onOOReady(); }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,6 @@ define([
|
|||||||
|
|
||||||
var loadDocument = APP.loadDocument = function (content, file) {
|
var loadDocument = APP.loadDocument = function (content, file) {
|
||||||
console.log("Read " + content);
|
console.log("Read " + content);
|
||||||
return;
|
|
||||||
window.frames[0].frames[0].editor.asc_CloseFile();
|
window.frames[0].frames[0].editor.asc_CloseFile();
|
||||||
var openResult = {bSerFormat: true, data: content, url: "http://localhost:3000/onlyoffice/", changes: null};
|
var openResult = {bSerFormat: true, data: content, url: "http://localhost:3000/onlyoffice/", changes: null};
|
||||||
window.frames[0].frames[0].editor.openDocument(openResult);
|
window.frames[0].frames[0].editor.openDocument(openResult);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user