Commit 124b31b3 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Добавил обработку наличия расширения в Word

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48561 954022d7-b5bf-4e40-9824-e11837661b57
parent 0670eb58
......@@ -15,7 +15,7 @@ function postLoadScript(scriptName)
window.postMessage({type: "FROM_PAGE_LOAD_SCRIPT", text: scriptName}, "*");
}
window.addEventListener("message", function(event) {
/*window.addEventListener("message", function(event) {
// We only accept messages from ourselves
if (event.source != window)
return;
......@@ -56,7 +56,7 @@ window.addEventListener("message", function(event) {
{
bIsLocalFontsUse = true;
}
}, false);
}, false);*/
function CFontFileLoader(id)
{
......
......@@ -1321,6 +1321,19 @@
editor.Init();
//editor.LoadDocument();
window.addEventListener("message", function(event) {
// We only accept messages from ourselves
if (null == event || null == event.data || event.source !== window)
return;
var data = JSON.parse(event.data);
if (null != data && null != data["type"]) {
if (PostMessageType.ExtensionExist == data["type"]) {
editor.SetFontsPath(data["url"]);
}
}
}, false);
window.onresize = function()
{
if (false === editor.bInit_word_control)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment