diff --git a/apps/documenteditor/embed/js/ApplicationController.js b/apps/documenteditor/embed/js/ApplicationController.js index 328e90fa4e..f8b5b8cef5 100644 --- a/apps/documenteditor/embed/js/ApplicationController.js +++ b/apps/documenteditor/embed/js/ApplicationController.js @@ -1022,10 +1022,12 @@ DE.ApplicationController = new(function(){ api = isPDF ? new Asc.PDFEditorApi({ 'id-view' : 'editor_sdk', - 'embedded' : true + 'embedded' : true, + 'isRtlInterface': window.isrtl }) : new Asc.asc_docs_api({ 'id-view' : 'editor_sdk', - 'embedded' : true + 'embedded' : true, + 'isRtlInterface': window.isrtl }); if (api){ diff --git a/apps/documenteditor/forms/app/controller/ApplicationController.js b/apps/documenteditor/forms/app/controller/ApplicationController.js index 0ed6576785..2c09032623 100644 --- a/apps/documenteditor/forms/app/controller/ApplicationController.js +++ b/apps/documenteditor/forms/app/controller/ApplicationController.js @@ -97,7 +97,8 @@ define([ var config = { 'id-view' : 'editor_sdk', 'embedded' : true, - 'translate': translationTable + 'translate': translationTable, + 'isRtlInterface': Common.UI.isRTL() }, hcolor = (/(?:&|^)headingsColor=([^&]+)&?/i).exec(window.location.search.substring(1)); hcolor && (config['headings-color'] = '#' + hcolor[1]); diff --git a/apps/documenteditor/main/app/controller/Viewport.js b/apps/documenteditor/main/app/controller/Viewport.js index f7db78787c..cdd473f559 100644 --- a/apps/documenteditor/main/app/controller/Viewport.js +++ b/apps/documenteditor/main/app/controller/Viewport.js @@ -130,7 +130,8 @@ define([ var config = { 'id-view' : 'editor_sdk', - 'translate': this.getApplication().getController('Main').translationTable + 'translate': this.getApplication().getController('Main').translationTable, + 'isRtlInterface': Common.UI.isRTL() }, hcolor = (/(?:&|^)headingsColor=([^&]+)&?/i).exec(window.location.search.substring(1)); hcolor && (config['headings-color'] = '#' + hcolor[1]); diff --git a/apps/documenteditor/mobile/src/controller/Main.jsx b/apps/documenteditor/mobile/src/controller/Main.jsx index 2a9f2a4215..23f2fbf595 100644 --- a/apps/documenteditor/mobile/src/controller/Main.jsx +++ b/apps/documenteditor/mobile/src/controller/Main.jsx @@ -470,7 +470,8 @@ class MainController extends Component { const config = { 'id-view' : 'editor_sdk', 'mobile' : true, - 'translate': _translate + 'translate': _translate, + 'isRtlInterface': Common.Locale.isCurrentLangRtl }; let hcolor = (/(?:&|^)headingsColor=([^&]+)&?/i).exec(window.location.search.substring(1)); hcolor && (config['headings-color'] = '#' + hcolor[1]); diff --git a/apps/pdfeditor/main/app/controller/Viewport.js b/apps/pdfeditor/main/app/controller/Viewport.js index 0ce45d990e..4767134fbb 100644 --- a/apps/pdfeditor/main/app/controller/Viewport.js +++ b/apps/pdfeditor/main/app/controller/Viewport.js @@ -137,10 +137,12 @@ define([ this.isXpsViewer = /[\?\&]fileType=\b(djvu|xps|oxps)\b&?/i.exec(window.location.search); this.api = (!!this.isXpsViewer || !window.isPDFForm) ? new Asc.PDFEditorApi({ 'id-view' : 'editor_sdk', - 'translate': this.getApplication().getController('Main').translationTable + 'translate': this.getApplication().getController('Main').translationTable, + 'isRtlInterface': Common.UI.isRTL() }) : new Asc.asc_docs_api({ 'id-view' : 'editor_sdk', - 'translate': this.getApplication().getController('Main').translationTable + 'translate': this.getApplication().getController('Main').translationTable, + 'isRtlInterface': Common.UI.isRTL() }); this.header = this.createView('Common.Views.Header', { diff --git a/apps/presentationeditor/embed/js/ApplicationController.js b/apps/presentationeditor/embed/js/ApplicationController.js index 1e2cf28aca..a151379ab9 100644 --- a/apps/presentationeditor/embed/js/ApplicationController.js +++ b/apps/presentationeditor/embed/js/ApplicationController.js @@ -825,7 +825,8 @@ PE.ApplicationController = new(function(){ api = new Asc.asc_docs_api({ 'id-view' : 'editor_sdk', - 'embedded' : true + 'embedded' : true, + 'isRtlInterface': window.isrtl }); if (api){ diff --git a/apps/presentationeditor/main/app/controller/Viewport.js b/apps/presentationeditor/main/app/controller/Viewport.js index 29423c17f8..9d52652474 100644 --- a/apps/presentationeditor/main/app/controller/Viewport.js +++ b/apps/presentationeditor/main/app/controller/Viewport.js @@ -133,7 +133,8 @@ define([ this.api = new Asc.asc_docs_api({ 'id-view' : 'editor_sdk', - 'translate': this.getApplication().getController('Main').translationTable + 'translate': this.getApplication().getController('Main').translationTable, + 'isRtlInterface': Common.UI.isRTL() }); this.header = this.createView('Common.Views.Header', { diff --git a/apps/presentationeditor/mobile/src/controller/Main.jsx b/apps/presentationeditor/mobile/src/controller/Main.jsx index f5c88bf840..ad86c59a61 100644 --- a/apps/presentationeditor/mobile/src/controller/Main.jsx +++ b/apps/presentationeditor/mobile/src/controller/Main.jsx @@ -255,7 +255,8 @@ class MainController extends Component { this.api = new Asc.asc_docs_api({ 'id-view': 'editor_sdk', 'mobile': true, - 'translate': _translate + 'translate': _translate, + 'isRtlInterface': Common.Locale.isCurrentLangRtl }); Common.Notifications.trigger('engineCreated', this.api); diff --git a/apps/spreadsheeteditor/embed/js/ApplicationController.js b/apps/spreadsheeteditor/embed/js/ApplicationController.js index fcd54552a8..cc01357ddf 100644 --- a/apps/spreadsheeteditor/embed/js/ApplicationController.js +++ b/apps/spreadsheeteditor/embed/js/ApplicationController.js @@ -918,7 +918,8 @@ SSE.ApplicationController = new(function(){ api = new Asc.spreadsheet_api({ 'id-view': 'editor_sdk', - 'embedded' : true + 'embedded' : true, + 'isRtlInterface': window.isrtl }); if (api){ diff --git a/apps/spreadsheeteditor/main/app/controller/Viewport.js b/apps/spreadsheeteditor/main/app/controller/Viewport.js index b9beaf6310..244ab195a8 100644 --- a/apps/spreadsheeteditor/main/app/controller/Viewport.js +++ b/apps/spreadsheeteditor/main/app/controller/Viewport.js @@ -187,7 +187,8 @@ define([ this.api = new Asc.spreadsheet_api({ 'id-view' : 'editor_sdk', 'id-input' : 'ce-cell-content', - 'translate': this.getApplication().getController('Main').translationTable + 'translate': this.getApplication().getController('Main').translationTable, + 'isRtlInterface': Common.UI.isRTL() }); this.header = this.createView('Common.Views.Header', { diff --git a/apps/spreadsheeteditor/mobile/src/controller/Main.jsx b/apps/spreadsheeteditor/mobile/src/controller/Main.jsx index 6e02c33003..d49bb7f0da 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Main.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Main.jsx @@ -359,7 +359,8 @@ class MainController extends Component { 'id-view': 'editor_sdk', 'id-input': 'idx-cell-content', 'mobile': true, - 'translate': _translate + 'translate': _translate, + 'isRtlInterface': Common.Locale.isCurrentLangRtl }); Common.Notifications.trigger('engineCreated', this.api); diff --git a/apps/visioeditor/embed/js/ApplicationController.js b/apps/visioeditor/embed/js/ApplicationController.js index 41cc2b1750..363aeaa258 100644 --- a/apps/visioeditor/embed/js/ApplicationController.js +++ b/apps/visioeditor/embed/js/ApplicationController.js @@ -870,7 +870,8 @@ VE.ApplicationController = new(function(){ api = new Asc.VisioEditorApi({ 'id-view' : 'editor_sdk', - 'embedded' : true + 'embedded' : true, + 'isRtlInterface': window.isrtl }); if (api){ diff --git a/apps/visioeditor/main/app/controller/Viewport.js b/apps/visioeditor/main/app/controller/Viewport.js index 0ccdc67ed5..f150c3db1a 100644 --- a/apps/visioeditor/main/app/controller/Viewport.js +++ b/apps/visioeditor/main/app/controller/Viewport.js @@ -128,7 +128,8 @@ define([ this.api = new Asc.VisioEditorApi({ 'id-view' : 'editor_sdk', - 'translate': this.getApplication().getController('Main').translationTable + 'translate': this.getApplication().getController('Main').translationTable, + 'isRtlInterface': Common.UI.isRTL() }); this.header = this.createView('Common.Views.Header', { diff --git a/apps/visioeditor/mobile/src/controller/Main.jsx b/apps/visioeditor/mobile/src/controller/Main.jsx index 036076d681..d3cf379d9f 100644 --- a/apps/visioeditor/mobile/src/controller/Main.jsx +++ b/apps/visioeditor/mobile/src/controller/Main.jsx @@ -202,7 +202,8 @@ class MainController extends Component { this.api = new Asc.VisioEditorApi({ 'id-view': 'editor_sdk', 'mobile': true, - 'translate': _translate + 'translate': _translate, + 'isRtlInterface': Common.Locale.isCurrentLangRtl }); Common.Notifications.trigger('engineCreated', this.api);