Commit 2f147148 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 32690

in view mode don't send font and styles initialize events
parent 6ac804ae
......@@ -281,7 +281,9 @@
};
baseEditorsApi.prototype.sync_InitEditorFonts = function(gui_fonts)
{
this.sendEvent("asc_onInitEditorFonts", gui_fonts);
if (!this.isViewMode) {
this.sendEvent("asc_onInitEditorFonts", gui_fonts);
}
};
baseEditorsApi.prototype.sync_StartAction = function(type, id)
{
......
......@@ -2355,11 +2355,15 @@ background-repeat: no-repeat;\
{
this._gui_editor_themes = gui_editor_themes;
this._gui_document_themes = gui_document_themes;
this.asc_fireCallback("asc_onInitEditorStyles", [gui_editor_themes, gui_document_themes]);
if (!this.isViewMode) {
this.asc_fireCallback("asc_onInitEditorStyles", [gui_editor_themes, gui_document_themes]);
}
};
asc_docs_api.prototype.sync_InitEditorTableStyles = function(styles)
{
this.asc_fireCallback("asc_onInitTableTemplates", styles);
if (!this.isViewMode) {
this.asc_fireCallback("asc_onInitTableTemplates", styles);
}
};
/*----------------------------------------------------------------*/
......
......@@ -2970,11 +2970,15 @@ background-repeat: no-repeat;\
};
asc_docs_api.prototype.sync_InitEditorStyles = function(styles_painter)
{
this.asc_fireCallback("asc_onInitEditorStyles", styles_painter);
if (!this.isViewMode) {
this.asc_fireCallback("asc_onInitEditorStyles", styles_painter);
}
};
asc_docs_api.prototype.sync_InitEditorTableStyles = function(styles, is_retina_enabled)
{
this.asc_fireCallback("asc_onInitTableTemplates", styles, is_retina_enabled);
if (!this.isViewMode) {
this.asc_fireCallback("asc_onInitTableTemplates", styles, is_retina_enabled);
}
};
......
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