Load OnlyOffice documents in the inner iframe

This commit is contained in:
yflory
2018-03-26 18:32:40 +02:00
parent 714c46fc2e
commit 34f2d66b7e
14 changed files with 94 additions and 248 deletions

View File

@@ -36,8 +36,12 @@ define([
};
window.addEventListener('message', onMsg);
}).nThen(function (/*waitFor*/) {
var addData = function (obj) {
obj.ooType = window.location.pathname.replace(/^\//, '').replace(/\/$/, '');
};
SFCommonO.start({
type: 'oo'
type: 'oo',
addData: addData
});
});
});