Commit 6ff9118c authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50192 954022d7-b5bf-4e40-9824-e11837661b57
parent fb849499
......@@ -171,6 +171,12 @@ function asc_docs_api(name)
};
}
}
if (window.editor == undefined)
{
window.editor = this;
window['editor'] = window.editor;
}
}
/////////////////////////////////////////////////////////////////////////
......@@ -672,11 +678,6 @@ asc_docs_api.prototype.sync_ChangeLastSelectedElement = function(type, obj)
asc_docs_api.prototype.Init = function()
{
if (window.editor == undefined)
{
window.editor = this;
window['editor'] = window.editor;
}
this.WordControl.Init();
}
asc_docs_api.prototype.asc_getEditorPermissions = function()
......
......@@ -662,6 +662,12 @@ function asc_docs_api(name)
};
}
}
if (window.editor == undefined)
{
window.editor = this;
window['editor'] = window.editor;
}
}
asc_docs_api.prototype.LoadFontsFromServer = function(_fonts)
......@@ -789,11 +795,6 @@ asc_docs_api.prototype.sync_ChangeLastSelectedElement = function(type, obj)
asc_docs_api.prototype.Init = function()
{
if (window.editor == undefined)
{
window.editor = this;
window['editor'] = window.editor;
}
this.WordControl.Init();
}
asc_docs_api.prototype.asc_getEditorPermissions = function()
......@@ -3774,6 +3775,25 @@ asc_docs_api.prototype.sync_EndAddShape = function()
asc_docs_api.prototype.SetDrawingFreeze = function(bIsFreeze)
{
this.WordControl.DrawingFreeze = bIsFreeze;
var _elem1 = document.getElementById("id_main");
if (_elem1)
{
var _elem2 = document.getElementById("id_horscrollpanel");
var _elem3 = document.getElementById("id_panel_right");
if (bIsFreeze)
{
_elem1.style.display = "none";
_elem2.style.display = "none";
_elem3.style.display = "none";
}
else
{
_elem1.style.display = "block";
_elem2.style.display = "block";
_elem3.style.display = "block";
}
}
}
/*----------------------------------------------------------------*/
......
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