Commit 501b9d9b authored by Sergey Luzyanin's avatar Sergey Luzyanin

Merge branch 'develop' of https://github.com/ONLYOFFICE/sdkjs into develop

parents 8f45d486 fcd21031
...@@ -2665,7 +2665,7 @@ CUserCacheColor.prototype.init = function(nColor) { ...@@ -2665,7 +2665,7 @@ CUserCacheColor.prototype.init = function(nColor) {
}; };
function loadScript(url, callback) { function loadScript(url, callback) {
if (window["NATIVE_EDITOR_ENJINE"] === true) if (window["NATIVE_EDITOR_ENJINE"] === true || window["Native"] !== undefined)
{ {
callback(); callback();
return; return;
......
...@@ -264,6 +264,7 @@ function asc_docs_api(name) ...@@ -264,6 +264,7 @@ function asc_docs_api(name)
this.isCoMarksDraw = false; this.isCoMarksDraw = false;
this.tmpCoMarksDraw = false; this.tmpCoMarksDraw = false;
this.tmpViewRulers = null;
// Spell Checking // Spell Checking
this.SpellCheckApi = (window["AscDesktopEditor"] === undefined) ? new AscCommon.CSpellCheckApi() : new CSpellCheckApi_desktop(); this.SpellCheckApi = (window["AscDesktopEditor"] === undefined) ? new AscCommon.CSpellCheckApi() : new CSpellCheckApi_desktop();
...@@ -6091,10 +6092,14 @@ asc_docs_api.prototype.asc_SetDocumentPlaceChangedEnabled = function(bEnabled) ...@@ -6091,10 +6092,14 @@ asc_docs_api.prototype.asc_SetDocumentPlaceChangedEnabled = function(bEnabled)
asc_docs_api.prototype.asc_SetViewRulers = function(bRulers) asc_docs_api.prototype.asc_SetViewRulers = function(bRulers)
{ {
return;
//if (false === this.bInit_word_control || true === this.isViewMode) //if (false === this.bInit_word_control || true === this.isViewMode)
// return; // return;
if (!this.isLoadFullApi) {
this.tmpViewRulers = bRulers;
return;
}
if (this.WordControl.m_bIsRuler != bRulers) if (this.WordControl.m_bIsRuler != bRulers)
{ {
this.WordControl.m_bIsRuler = bRulers; this.WordControl.m_bIsRuler = bRulers;
...@@ -6795,6 +6800,9 @@ asc_docs_api.prototype._onEndLoadSdk = function() { ...@@ -6795,6 +6800,9 @@ asc_docs_api.prototype._onEndLoadSdk = function() {
if (this.tmpFontRenderingMode) { if (this.tmpFontRenderingMode) {
this.SetFontRenderingMode(this.tmpFontRenderingMode); this.SetFontRenderingMode(this.tmpFontRenderingMode);
} }
if (null !== this.tmpViewRulers) {
this.asc_SetViewRulers(this.tmpViewRulers);
}
this.asc_setViewMode(this.isViewMode); this.asc_setViewMode(this.isViewMode);
this.asc_setDrawCollaborationMarks(this.tmpCoMarksDraw); this.asc_setDrawCollaborationMarks(this.tmpCoMarksDraw);
......
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