Commit 51c4560c authored by Alexander.Trofimov's avatar Alexander.Trofimov

init canvas shape after open

parent c5f7995e
...@@ -3675,6 +3675,9 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function() ...@@ -3675,6 +3675,9 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
if (!this.isViewMode) { if (!this.isViewMode) {
this.sendStandartTextures(); this.sendStandartTextures();
if (this.shapeElementId) {
this.WordControl.m_oDrawingDocument.InitGuiCanvasShape(this.shapeElementId);
}
} }
if (this.isViewMode) if (this.isViewMode)
...@@ -4733,8 +4736,6 @@ asc_docs_api.prototype._onOpenCommand = function(data) { ...@@ -4733,8 +4736,6 @@ asc_docs_api.prototype._onOpenCommand = function(data) {
}); });
}; };
asc_docs_api.prototype._onEndLoadSdk = function() { asc_docs_api.prototype._onEndLoadSdk = function() {
this.WordControl.m_oDrawingDocument.InitGuiCanvasShape(this.shapeElementId);
asc_docs_api.superclass._onEndLoadSdk.call(this); asc_docs_api.superclass._onEndLoadSdk.call(this);
}; };
......
...@@ -5994,6 +5994,10 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function() ...@@ -5994,6 +5994,10 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
if (!this.isViewMode) { if (!this.isViewMode) {
this.sendStandartTextures(); this.sendStandartTextures();
this.WordControl.m_oDrawingDocument.SendMathToMenu(); this.WordControl.m_oDrawingDocument.SendMathToMenu();
if (this.shapeElementId) {
this.WordControl.m_oDrawingDocument.InitGuiCanvasShape(this.shapeElementId);
}
} }
if (this.isViewMode) if (this.isViewMode)
...@@ -7051,7 +7055,6 @@ asc_docs_api.prototype._onEndLoadSdk = function() { ...@@ -7051,7 +7055,6 @@ asc_docs_api.prototype._onEndLoadSdk = function() {
g_oTableId.init(); g_oTableId.init();
this.WordControl = new AscCommonWord.CEditorPage(this); this.WordControl = new AscCommonWord.CEditorPage(this);
this.WordControl.Name = this.HtmlElementName; this.WordControl.Name = this.HtmlElementName;
this.WordControl.m_oDrawingDocument.InitGuiCanvasShape(this.shapeElementId);
this.CurrentTranslate = AscCommonWord.translations_map["en"]; 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