Commit 46fa61e2 authored by Alexander.Trofimov's avatar Alexander.Trofimov

init canvas shape after open

parent 6002f448
......@@ -3699,6 +3699,9 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
if (!this.isViewMode) {
this.sendStandartTextures();
if (this.shapeElementId) {
this.WordControl.m_oDrawingDocument.InitGuiCanvasShape(this.shapeElementId);
}
}
if (this.isViewMode)
......@@ -4757,8 +4760,6 @@ asc_docs_api.prototype._onOpenCommand = function(data) {
});
};
asc_docs_api.prototype._onEndLoadSdk = function() {
this.WordControl.m_oDrawingDocument.InitGuiCanvasShape(this.shapeElementId);
asc_docs_api.superclass._onEndLoadSdk.call(this);
};
......
......@@ -6018,6 +6018,10 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
if (!this.isViewMode) {
this.sendStandartTextures();
this.WordControl.m_oDrawingDocument.SendMathToMenu();
if (this.shapeElementId) {
this.WordControl.m_oDrawingDocument.InitGuiCanvasShape(this.shapeElementId);
}
}
if (this.isViewMode)
......@@ -7075,7 +7079,6 @@ asc_docs_api.prototype._onEndLoadSdk = function() {
g_oTableId.init();
this.WordControl = new AscCommonWord.CEditorPage(this);
this.WordControl.Name = this.HtmlElementName;
this.WordControl.m_oDrawingDocument.InitGuiCanvasShape(this.shapeElementId);
this.CurrentTranslate = AscCommonWord.translations_map["en"];
......
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