diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js
index bfc03f2cd..76c6f6ea1 100644
--- a/apps/api/documents/api.js
+++ b/apps/api/documents/api.js
@@ -322,7 +322,7 @@
}
if (typeof _config.document.fileType === 'string' && _config.document.fileType != '') {
- var type = /^(?:(xls|xlsx|ods|csv|xlst|xlsy|gsheet|xlsm|xlt|xltm|xltx)|(pps|ppsx|ppt|pptx|odp|pptt|ppty|gslides|pot|potm|potx|ppsm|pptm)|(doc|docx|doct|odt|gdoc|txt|rtf|pdf|mht|htm|html|epub|djvu|xps|docm|dot|dotm|dotx))$/
+ var type = /^(?:(xls|xlsx|ods|csv|xlst|xlsy|gsheet|xlsm|xlt|xltm|xltx|fods)|(pps|ppsx|ppt|pptx|odp|pptt|ppty|gslides|pot|potm|potx|ppsm|pptm|fodp)|(doc|docx|doct|odt|gdoc|txt|rtf|pdf|mht|htm|html|epub|djvu|xps|docm|dot|dotm|dotx|fodt))$/
.exec(_config.document.fileType);
if (!type) {
window.alert("The \"document.fileType\" parameter for the config object is invalid. Please correct it.");
@@ -336,9 +336,6 @@
var type = /^(?:(pdf|djvu|xps))$/.exec(_config.document.fileType);
if (type && typeof type[1] === 'string') {
- if (!_config.document.permissions)
- _config.document.permissions = {};
- _config.document.permissions.edit = _config.document.permissions.review = false;
_config.editorConfig.canUseHistory = false;
}
@@ -659,7 +656,7 @@
app = appMap[config.documentType.toLowerCase()];
} else
if (!!config.document && typeof config.document.fileType === 'string') {
- var type = /^(?:(xls|xlsx|ods|csv|xlst|xlsy|gsheet|xlsm|xlt|xltm|xltx)|(pps|ppsx|ppt|pptx|odp|pptt|ppty|gslides|pot|potm|potx|ppsm|pptm))$/
+ var type = /^(?:(xls|xlsx|ods|csv|xlst|xlsy|gsheet|xlsm|xlt|xltm|xltx|fods)|(pps|ppsx|ppt|pptx|odp|pptt|ppty|gslides|pot|potm|potx|ppsm|pptm|fodp))$/
.exec(config.document.fileType);
if (type) {
if (typeof type[1] === 'string') app = appMap['spreadsheet']; else
diff --git a/apps/common/main/lib/component/Window.js b/apps/common/main/lib/component/Window.js
index f2f4e3a33..9a6cbef9e 100644
--- a/apps/common/main/lib/component/Window.js
+++ b/apps/common/main/lib/component/Window.js
@@ -842,17 +842,17 @@ define([
setResizable: function(resizable, minSize, maxSize) {
if (resizable !== this.resizable) {
if (resizable) {
- var bordersTemplate = '
' +
+ var bordersTemplate = '' +
'' +
'' +
'' +
- '' +
+ '' +
'' +
- '' +
+ '' +
'';
if (this.initConfig.header)
- bordersTemplate += '' +
- '';
+ bordersTemplate += '' +
+ '';
this.$window.append(_.template(bordersTemplate));
diff --git a/apps/common/main/lib/controller/Plugins.js b/apps/common/main/lib/controller/Plugins.js
index 5e544d17a..0acad9dcd 100644
--- a/apps/common/main/lib/controller/Plugins.js
+++ b/apps/common/main/lib/controller/Plugins.js
@@ -281,14 +281,14 @@ define([
this.api.asc_pluginRun(record.get('guid'), 0, '');
},
- onPluginShow: function(plugin, variationIndex) {
+ onPluginShow: function(plugin, variationIndex, frameId) {
var variation = plugin.get_Variations()[variationIndex];
if (variation.get_Visual()) {
var url = variation.get_Url();
url = ((plugin.get_BaseUrl().length == 0) ? url : plugin.get_BaseUrl()) + url;
if (variation.get_InsideMode()) {
- if (!this.panelPlugins.openInsideMode(plugin.get_Name(), url))
+ if (!this.panelPlugins.openInsideMode(plugin.get_Name(), url, frameId))
this.api.asc_pluginButtonClick(-1);
} else {
var me = this,
@@ -311,6 +311,7 @@ define([
width: size[0], // inner width
height: size[1], // inner height
url: url,
+ frameId : frameId,
buttons: isCustomWindow ? undefined : newBtns,
toolcallback: _.bind(this.onToolClose, this)
});
diff --git a/apps/common/main/lib/view/Plugins.js b/apps/common/main/lib/view/Plugins.js
index d56222143..cdadc1bf8 100644
--- a/apps/common/main/lib/view/Plugins.js
+++ b/apps/common/main/lib/view/Plugins.js
@@ -194,7 +194,7 @@ define([
}
},
- openInsideMode: function(name, url) {
+ openInsideMode: function(name, url, frameId) {
if (!this.pluginsPanel) return false;
this.pluginsPanel.toggleClass('hidden', true);
@@ -203,7 +203,7 @@ define([
this.pluginName.text(name);
if (!this.iframePlugin) {
this.iframePlugin = document.createElement("iframe");
- this.iframePlugin.id = 'plugin_iframe';
+ this.iframePlugin.id = (frameId === undefined) ? 'plugin_iframe' : frameId;
this.iframePlugin.name = 'pluginFrameEditor';
this.iframePlugin.width = '100%';
this.iframePlugin.height = '100%';
@@ -372,6 +372,7 @@ define([
_options.tpl = _.template(this.template)(_options);
this.url = options.url || '';
+ this.frameId = options.frameId || 'plugin_iframe';
Common.UI.Window.prototype.initialize.call(this, _options);
},
@@ -385,7 +386,7 @@ define([
this._headerFooterHeight += ((parseInt(this.$window.css('border-top-width')) + parseInt(this.$window.css('border-bottom-width'))));
var iframe = document.createElement("iframe");
- iframe.id = 'plugin_iframe';
+ iframe.id = this.frameId;
iframe.name = 'pluginFrameEditor';
iframe.width = '100%';
iframe.height = '100%';
diff --git a/apps/documenteditor/embed/js/ApplicationController.js b/apps/documenteditor/embed/js/ApplicationController.js
index 6016df2bb..22b0216a8 100644
--- a/apps/documenteditor/embed/js/ApplicationController.js
+++ b/apps/documenteditor/embed/js/ApplicationController.js
@@ -90,13 +90,20 @@ var ApplicationController = new(function(){
if (docConfig) {
permissions = $.extend(permissions, docConfig.permissions);
- var docInfo = new Asc.asc_CDocInfo();
+ var _permissions = $.extend({}, docConfig.permissions),
+ docInfo = new Asc.asc_CDocInfo();
docInfo.put_Id(docConfig.key);
docInfo.put_Url(docConfig.url);
docInfo.put_Title(docConfig.title);
docInfo.put_Format(docConfig.fileType);
docInfo.put_VKey(docConfig.vkey);
docInfo.put_Token(docConfig.token);
+ docInfo.put_Permissions(_permissions);
+
+ var type = /^(?:(pdf|djvu|xps))$/.exec(docConfig.fileType);
+ if (type && typeof type[1] === 'string') {
+ permissions.edit = permissions.review = false;
+ }
if (api) {
api.asc_registerCallback('asc_onGetEditorPermissions', onEditorPermissions);
diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js
index 4b1ae3385..1d159a5a9 100644
--- a/apps/documenteditor/main/app/controller/LeftMenu.js
+++ b/apps/documenteditor/main/app/controller/LeftMenu.js
@@ -202,7 +202,7 @@ define([
if (this.mode.canUseHistory)
this.leftMenu.setOptionsPanel('history', this.getApplication().getController('Common.Controllers.History').getView('Common.Views.History'));
- this.mode.isTrial && this.leftMenu.setDeveloperMode(true);
+ this.mode.trialMode && this.leftMenu.setDeveloperMode(this.mode.trialMode);
Common.util.Shortcuts.resumeEvents();
return this;
@@ -214,7 +214,7 @@ define([
this.leftMenu.setOptionsPanel('plugins', this.getApplication().getController('Common.Controllers.Plugins').getView('Common.Views.Plugins'));
} else
this.leftMenu.btnPlugins.hide();
- this.mode.isTrial && this.leftMenu.setDeveloperMode(true);
+ this.mode.trialMode && this.leftMenu.setDeveloperMode(this.mode.trialMode);
},
clickMenuFileItem: function(menu, action, isopts) {
@@ -319,6 +319,11 @@ define([
// window["AscInputMethod"]["SogouPinyin"] = value;
}
+ if (Common.Utils.isChrome) {
+ value = Common.localStorage.getBool("de-settings-inputsogou");
+ this.api.setInputParams({"SogouPinyin" : value});
+ }
+
/** coauthoring begin **/
if (this.mode.isEdit && !this.mode.isOffline && this.mode.canCoAuthoring) {
var fast_coauth = Common.localStorage.getBool("de-settings-coauthmode", true);
diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js
index a1653ddb6..6f1bc6702 100644
--- a/apps/documenteditor/main/app/controller/Main.js
+++ b/apps/documenteditor/main/app/controller/Main.js
@@ -317,7 +317,8 @@ define([
if (data.doc) {
this.permissions = $.extend(this.permissions, data.doc.permissions);
- var _user = new Asc.asc_CUserInfo();
+ var _permissions = $.extend({}, data.doc.permissions),
+ _user = new Asc.asc_CUserInfo();
_user.put_Id(this.appOptions.user.id);
_user.put_FullName(this.appOptions.user.fullname);
@@ -331,8 +332,14 @@ define([
docInfo.put_UserInfo(_user);
docInfo.put_CallbackUrl(this.editorConfig.callbackUrl);
docInfo.put_Token(data.doc.token);
+ docInfo.put_Permissions(_permissions);
// docInfo.put_Review(this.permissions.review);
// docInfo.put_OfflineApp(this.editorConfig.nativeApp === true); // used in sdk for testing
+
+ var type = /^(?:(pdf|djvu|xps))$/.exec(data.doc.fileType);
+ if (type && typeof type[1] === 'string') {
+ this.permissions.edit = this.permissions.review = false;
+ }
}
this.api.asc_registerCallback('asc_onGetEditorPermissions', _.bind(this.onEditorPermissions, this));
@@ -837,8 +844,8 @@ define([
if (Common.Utils.isChrome) {
value = Common.localStorage.getBool("de-settings-inputsogou");
+ me.api.setInputParams({"SogouPinyin" : value});
Common.Utils.InternalSettings.set("de-settings-inputsogou", value);
- // window["AscInputMethod"]["SogouPinyin"] = value;
}
/** coauthoring begin **/
@@ -982,7 +989,7 @@ define([
primary: 'buynow',
callback: function(btn) {
if (btn == 'buynow')
- window.open('http://www.onlyoffice.com/enterprise-edition.aspx', "_blank");
+ window.open('https://www.onlyoffice.com', "_blank");
else if (btn == 'contact')
window.open('mailto:sales@onlyoffice.com', "_blank");
}
@@ -1046,7 +1053,7 @@ define([
this.appOptions.canForcesave = this.appOptions.isEdit && !this.appOptions.isOffline && (typeof (this.editorConfig.customization) == 'object' && !!this.editorConfig.customization.forcesave);
this.appOptions.forcesave = this.appOptions.canForcesave;
this.appOptions.canEditComments= this.appOptions.isOffline || !(typeof (this.editorConfig.customization) == 'object' && this.editorConfig.customization.commentAuthorOnly);
- this.appOptions.isTrial = params.asc_getTrial();
+ this.appOptions.trialMode = params.asc_getLicenseMode();
this.appOptions.canProtect = this.appOptions.isDesktopApp && this.api.asc_isSignaturesSupport();
if ( this.appOptions.isLightVersion ) {
@@ -1980,9 +1987,10 @@ define([
if (plugins) {
var arr = [], arrUI = [];
plugins.pluginsData.forEach(function(item){
- if (uiCustomize!==undefined && _.find(arr, function(arritem) {
- return (arritem.get('baseUrl') == item.baseUrl || arritem.get('guid') == item.guid);
- })) return;
+ if (_.find(arr, function(arritem) {
+ return (arritem.get('baseUrl') == item.baseUrl || arritem.get('guid') == item.guid);
+ }) || pluginStore.findWhere({baseUrl: item.baseUrl}) || pluginStore.findWhere({guid: item.guid}))
+ return;
var variationsArr = [],
pluginVisible = false;
@@ -2021,7 +2029,7 @@ define([
this.UICustomizePlugins = arrUI;
if ( !uiCustomize ) {
- if (pluginStore) pluginStore.reset(arr);
+ if (pluginStore) pluginStore.add(arr);
this.appOptions.canPlugins = !pluginStore.isEmpty();
}
} else if (!uiCustomize){
diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js
index b12fb024c..0f0f68848 100644
--- a/apps/documenteditor/main/app/controller/Toolbar.js
+++ b/apps/documenteditor/main/app/controller/Toolbar.js
@@ -1748,6 +1748,8 @@ define([
},
onSelectChart: function(picker, item, record) {
+ if (!record) return;
+
var me = this,
type = record.get('type'),
chart = false;
@@ -2341,8 +2343,10 @@ define([
shapePicker.on('item:click', function(picker, item, record, e) {
if (me.api) {
- me._addAutoshape(true, record.get('data').shapeType);
- me._isAddingShape = true;
+ if (record) {
+ me._addAutoshape(true, record.get('data').shapeType);
+ me._isAddingShape = true;
+ }
if (me.toolbar.btnInsertText.pressed) {
me.toolbar.btnInsertText.toggle(false, true);
@@ -2413,7 +2417,8 @@ define([
equationPicker.on('item:click', function(picker, item, record, e) {
if (me.api) {
- me.api.asc_AddMath(record.get('data').equationType);
+ if (record)
+ me.api.asc_AddMath(record.get('data').equationType);
if (me.toolbar.btnInsertText.pressed) {
me.toolbar.btnInsertText.toggle(false, true);
@@ -2577,8 +2582,10 @@ define([
this.toolbar.mnuTextArtPicker.on('item:click', function(picker, item, record, e) {
if (me.api) {
- me.toolbar.fireEvent('inserttextart', me.toolbar);
- me.api.AddTextArt(record.get('data'));
+ if (record) {
+ me.toolbar.fireEvent('inserttextart', me.toolbar);
+ me.api.AddTextArt(record.get('data'));
+ }
if (me.toolbar.btnInsertShape.pressed)
me.toolbar.btnInsertShape.toggle(false, true);
diff --git a/apps/documenteditor/main/app/view/LeftMenu.js b/apps/documenteditor/main/app/view/LeftMenu.js
index 4d082d3cd..9670f0c5f 100644
--- a/apps/documenteditor/main/app/view/LeftMenu.js
+++ b/apps/documenteditor/main/app/view/LeftMenu.js
@@ -360,7 +360,7 @@ define([
if ( !this.$el.is(':visible') ) return;
if (!this.developerHint) {
- this.developerHint = $('' + this.txtDeveloper + '
').appendTo(this.$el);
+ this.developerHint = $('' + ((mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial : this.txtDeveloper) + '
').appendTo(this.$el);
this.devHeight = this.developerHint.outerHeight();
$(window).on('resize', _.bind(this.onWindowResize, this));
}
@@ -382,6 +382,7 @@ define([
tipSupport : 'Feedback & Support',
tipSearch : 'Search',
tipPlugins : 'Plugins',
- txtDeveloper: 'DEVELOPER MODE'
+ txtDeveloper: 'DEVELOPER MODE',
+ txtTrial: 'TRIAL MODE'
}, DE.Views.LeftMenu || {}));
});
diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js
index 950efcc1a..1cf37d7d2 100644
--- a/apps/documenteditor/main/app/view/Toolbar.js
+++ b/apps/documenteditor/main/app/view/Toolbar.js
@@ -2485,7 +2485,7 @@ define([
textTabLayout: 'Page Layout',
textTabReview: 'Review',
capBtnInsShape: 'Shape',
- capBtnInsTextbox: 'Text',
+ capBtnInsTextbox: 'Text Box',
capBtnInsTextart: 'Text Art',
capBtnInsDropcap: 'Drop Cap',
capBtnInsFootnote: 'Footnotes',
diff --git a/apps/documenteditor/main/locale/de.json b/apps/documenteditor/main/locale/de.json
index 0b3f9dd9a..94ff4fb3c 100644
--- a/apps/documenteditor/main/locale/de.json
+++ b/apps/documenteditor/main/locale/de.json
@@ -179,6 +179,7 @@
"Common.Views.OpenDialog.cancelButtonText": "Abbrechen",
"Common.Views.OpenDialog.okButtonText": "OK",
"Common.Views.OpenDialog.txtEncoding": "Verschlüsselung ",
+ "Common.Views.OpenDialog.txtIncorrectPwd": "Kennwort ist falsch.",
"Common.Views.OpenDialog.txtPassword": "Kennwort",
"Common.Views.OpenDialog.txtTitle": "%1-Optionen wählen",
"Common.Views.OpenDialog.txtTitleProtected": "Geschützte Datei",
@@ -309,7 +310,7 @@
"DE.Controllers.Main.textCloseTip": "Klicken Sie, um den Tipp zu schließen",
"DE.Controllers.Main.textContactUs": "Verkaufsteam kontaktieren",
"DE.Controllers.Main.textLoadingDocument": "Dokument wird geladen...\t",
- "DE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE Open Source Version",
+ "DE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE Verbindungsbeschränkung",
"DE.Controllers.Main.textShape": "Form",
"DE.Controllers.Main.textStrict": "Formaler Modus",
"DE.Controllers.Main.textTryUndoRedo": "Undo/Redo Optionen sind für den halbformalen Zusammenbearbeitungsmodus deaktiviert.
Klicken Sie auf den Button \"Formaler Modus\", um den formalen Zusammenbearbeitungsmodus zu aktivieren, um die Datei, ohne Störungen anderer Benutzer zu bearbeiten und die Änderungen erst nachdem Sie sie gespeichert haben, zu senden. Sie können zwischen den Zusammenbearbeitungsmodi mit der Hilfe der erweiterten Einstellungen von Editor umschalten.",
@@ -359,7 +360,7 @@
"DE.Controllers.Main.warnBrowserIE9": "Die Applkation hat geringte Fähigkeiten in IE9. Nutzen Sie IE10 oder höher.",
"DE.Controllers.Main.warnBrowserZoom": "Die aktuelle Zoom-Einstellung Ihres Webbrowsers wird nicht völlig unterstützt. Bitte stellen Sie die Standardeinstellung mithilfe der Tastenkombination Strg+0 wieder her.",
"DE.Controllers.Main.warnLicenseExp": "Ihre Lizenz ist abgelaufen.
Bitte aktualisieren Sie Ihre Lizenz und laden Sie die Seite neu.",
- "DE.Controllers.Main.warnNoLicense": "Sie nutzen die Open Source Version von ONLYOFFICE. Die Version hat gewisse Einschränkungen für gleichzeitige Verbindungen zu Dokumentenserver (20 Verbindungen in einer Zeit).
Wenn Sie mehr Verbindungen benötigen, erwerben Sie eine kommerzielle Lizenz.",
+ "DE.Controllers.Main.warnNoLicense": "Diese Version von ONLYOFFICE Editoren hat gewisse Einschränkungen für gleichzeitige Verbindungen zu Dokumentenserver.
Wenn Sie mehr Verbindungen benötigen, aktualisieren Sie diese Version oder erwerben Sie eine kommerzielle Lizenz.",
"DE.Controllers.Main.warnProcessRightsChange": "Das Recht, die Datei zu bearbeiten, wurde Ihnen verweigert.",
"DE.Controllers.Statusbar.textHasChanges": "Neue Änderungen wurden zurückverfolgt",
"DE.Controllers.Statusbar.textTrackChanges": "Das Dokument wird im Modus \"Nachverfolgen von Änderungen\" geöffnet. ",
@@ -1523,7 +1524,7 @@
"DE.Views.Toolbar.capBtnInsShape": "Form",
"DE.Views.Toolbar.capBtnInsTable": "Tabelle",
"DE.Views.Toolbar.capBtnInsTextart": "Text Art",
- "DE.Views.Toolbar.capBtnInsTextbox": "Text",
+ "DE.Views.Toolbar.capBtnInsTextbox": "Textfeld",
"DE.Views.Toolbar.capBtnMargins": "Ränder",
"DE.Views.Toolbar.capBtnPageOrient": "Orientierung",
"DE.Views.Toolbar.capBtnPageSize": "Größe",
diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json
index 62a9e21ad..71a60fb10 100644
--- a/apps/documenteditor/main/locale/en.json
+++ b/apps/documenteditor/main/locale/en.json
@@ -349,7 +349,7 @@
"DE.Controllers.Main.textCloseTip": "Click to close the tip",
"DE.Controllers.Main.textContactUs": "Contact sales",
"DE.Controllers.Main.textLoadingDocument": "Loading document",
- "DE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE open source version",
+ "DE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE connection limitation",
"DE.Controllers.Main.textShape": "Shape",
"DE.Controllers.Main.textStrict": "Strict mode",
"DE.Controllers.Main.textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.
Click the 'Strict mode' button to switch to the Strict co-editing mode to edit the file without other users interference and send your changes only after you save them. You can switch between the co-editing modes using the editor Advanced settings.",
@@ -410,7 +410,7 @@
"DE.Controllers.Main.warnBrowserIE9": "The application has low capabilities on IE9. Use IE10 or higher",
"DE.Controllers.Main.warnBrowserZoom": "Your browser current zoom setting is not fully supported. Please reset to the default zoom by pressing Ctrl+0.",
"DE.Controllers.Main.warnLicenseExp": "Your license has expired.
Please update your license and refresh the page.",
- "DE.Controllers.Main.warnNoLicense": "You are using an open source version of ONLYOFFICE. The version has limitations for concurrent connections to the document server (20 connections at a time).
If you need more please consider purchasing a commercial license.",
+ "DE.Controllers.Main.warnNoLicense": "This version of ONLYOFFICE Editors has certain limitations for concurrent connections to the document server.
If you need more please consider upgrading your current license or purchasing a commercial one.",
"DE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
"DE.Controllers.Statusbar.textHasChanges": "New changes have been tracked",
"DE.Controllers.Statusbar.textTrackChanges": "The document is opened with the Track Changes mode enabled",
@@ -1203,6 +1203,7 @@
"DE.Views.LeftMenu.tipSupport": "Feedback & Support",
"DE.Views.LeftMenu.tipTitles": "Titles",
"DE.Views.LeftMenu.txtDeveloper": "DEVELOPER MODE",
+ "DE.Views.LeftMenu.txtTrial": "TRIAL MODE",
"DE.Views.MailMergeEmailDlg.cancelButtonText": "Cancel",
"DE.Views.MailMergeEmailDlg.filePlaceholder": "PDF",
"DE.Views.MailMergeEmailDlg.okButtonText": "Send",
@@ -1592,7 +1593,7 @@
"DE.Views.Toolbar.capBtnInsShape": "Shape",
"DE.Views.Toolbar.capBtnInsTable": "Table",
"DE.Views.Toolbar.capBtnInsTextart": "Text Art",
- "DE.Views.Toolbar.capBtnInsTextbox": "Text",
+ "DE.Views.Toolbar.capBtnInsTextbox": "Text Box",
"DE.Views.Toolbar.capBtnMargins": "Margins",
"DE.Views.Toolbar.capBtnPageOrient": "Orientation",
"DE.Views.Toolbar.capBtnPageSize": "Size",
diff --git a/apps/documenteditor/main/locale/ru.json b/apps/documenteditor/main/locale/ru.json
index ecccd31f8..52b20e7eb 100644
--- a/apps/documenteditor/main/locale/ru.json
+++ b/apps/documenteditor/main/locale/ru.json
@@ -310,7 +310,7 @@
"DE.Controllers.Main.textCloseTip": "Щелкните, чтобы закрыть эту подсказку",
"DE.Controllers.Main.textContactUs": "Связаться с отделом продаж",
"DE.Controllers.Main.textLoadingDocument": "Загрузка документа",
- "DE.Controllers.Main.textNoLicenseTitle": "Open source версия ONLYOFFICE",
+ "DE.Controllers.Main.textNoLicenseTitle": "Ограничение по числу подключений ONLYOFFICE",
"DE.Controllers.Main.textShape": "Фигура",
"DE.Controllers.Main.textStrict": "Строгий режим",
"DE.Controllers.Main.textTryUndoRedo": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.
Нажмите на кнопку 'Строгий режим' для переключения в Строгий режим совместного редактирования, чтобы редактировать файл без вмешательства других пользователей и отправлять изменения только после того, как вы их сохраните. Переключаться между режимами совместного редактирования можно с помощью Дополнительных параметров редактора.",
@@ -362,7 +362,7 @@
"DE.Controllers.Main.warnBrowserIE9": "В IE9 приложение имеет низкую производительность. Используйте IE10 или более позднюю версию.",
"DE.Controllers.Main.warnBrowserZoom": "Текущее значение масштаба страницы в браузере поддерживается не полностью. Вернитесь к масштабу по умолчанию, нажав Ctrl+0.",
"DE.Controllers.Main.warnLicenseExp": "Истек срок действия лицензии.
Обновите лицензию, а затем обновите страницу.",
- "DE.Controllers.Main.warnNoLicense": "Вы используете open source версию ONLYOFFICE. Эта версия имеет ограничения по количеству одновременных подключений к серверу документов (20 подключений одновременно).
Если требуется больше, рассмотрите вопрос о покупке коммерческой лицензии.",
+ "DE.Controllers.Main.warnNoLicense": "Эта версия редакторов ONLYOFFICE имеет некоторые ограничения по количеству одновременных подключений к серверу документов.
Если требуется больше, рассмотрите вопрос об обновлении текущей лицензии или покупке коммерческой лицензии.",
"DE.Controllers.Main.warnProcessRightsChange": "Вам было отказано в праве на редактирование этого файла.",
"DE.Controllers.Statusbar.textHasChanges": "Отслежены новые изменения",
"DE.Controllers.Statusbar.textTrackChanges": "Документ открыт при включенном режиме отслеживания изменений",
@@ -996,6 +996,7 @@
"DE.Views.FileMenuPanels.Settings.strFontRender": "Хинтинг шрифтов",
"DE.Views.FileMenuPanels.Settings.strForcesave": "Всегда сохранять на сервере (в противном случае сохранять на сервере при закрытии документа)",
"DE.Views.FileMenuPanels.Settings.strInputMode": "Включить иероглифы",
+ "DE.Views.FileMenuPanels.Settings.strInputSogou": "Включить метод ввода Sogou Pinyin",
"DE.Views.FileMenuPanels.Settings.strLiveComment": "Включить отображение комментариев в тексте",
"DE.Views.FileMenuPanels.Settings.strResolvedComment": "Включить отображение решенных комментариев",
"DE.Views.FileMenuPanels.Settings.strShowChanges": "Отображать изменения при совместной работе",
@@ -1146,6 +1147,7 @@
"DE.Views.LeftMenu.tipSupport": "Обратная связь и поддержка",
"DE.Views.LeftMenu.tipTitles": "Заголовки",
"DE.Views.LeftMenu.txtDeveloper": "РЕЖИМ РАЗРАБОТЧИКА",
+ "DE.Views.LeftMenu.txtTrial": "ПРОБНЫЙ РЕЖИМ",
"DE.Views.MailMergeEmailDlg.cancelButtonText": "Отмена",
"DE.Views.MailMergeEmailDlg.filePlaceholder": "PDF",
"DE.Views.MailMergeEmailDlg.okButtonText": "Отправить",
@@ -1526,7 +1528,7 @@
"DE.Views.Toolbar.capBtnInsShape": "Фигура",
"DE.Views.Toolbar.capBtnInsTable": "Таблица",
"DE.Views.Toolbar.capBtnInsTextart": "Text Art",
- "DE.Views.Toolbar.capBtnInsTextbox": "Текст",
+ "DE.Views.Toolbar.capBtnInsTextbox": "Надпись",
"DE.Views.Toolbar.capBtnMargins": "Поля",
"DE.Views.Toolbar.capBtnPageOrient": "Ориентация",
"DE.Views.Toolbar.capBtnPageSize": "Размер",
diff --git a/apps/documenteditor/main/resources/help/en/UsageInstructions/InsertImages.htm b/apps/documenteditor/main/resources/help/en/UsageInstructions/InsertImages.htm
index 4161dc0db..6c7c409c3 100644
--- a/apps/documenteditor/main/resources/help/en/UsageInstructions/InsertImages.htm
+++ b/apps/documenteditor/main/resources/help/en/UsageInstructions/InsertImages.htm
@@ -33,7 +33,7 @@
Adjust image settings
Some of the image settings can be altered using the Image settings tab of the right sidebar. To activate it click the image and choose the Image settings
icon on the right. Here you can change the following properties:
- - Size is used to view the current image Width and Height or restore the image Default Size if necessary.
+ - Size is used to view the current image Width and Height. If necessary, you can restore the default image size clicking the Default Size button. The Fit to Margin button allows to resize the image, so that it occupies all the space between the left and right page margin.
- Wrapping Style is used to select a text wrapping style from the available ones - inline, square, tight, through, top and bottom, in front, behind (for more information see the advanced settings description below).
- Replace Image is used to replace the current image loading another one from file or URL.
diff --git a/apps/documenteditor/main/resources/help/en/UsageInstructions/InsertTextObjects.htm b/apps/documenteditor/main/resources/help/en/UsageInstructions/InsertTextObjects.htm
index ea3794a2c..427c391c5 100644
--- a/apps/documenteditor/main/resources/help/en/UsageInstructions/InsertTextObjects.htm
+++ b/apps/documenteditor/main/resources/help/en/UsageInstructions/InsertTextObjects.htm
@@ -17,7 +17,7 @@
switch to the Insert tab of the top toolbar,
select the necessary text object type:
- - to add a text box, click the
Text icon at the top toolbar, then click where you want to insert the text box, hold the mouse button and drag the text box border to specify its size. When you release the mouse button, the insertion point will appear in the added text box, allowing you to enter your text.
+ - to add a text box, click the
Text Box icon at the top toolbar, then click where you want to insert the text box, hold the mouse button and drag the text box border to specify its size. When you release the mouse button, the insertion point will appear in the added text box, allowing you to enter your text.
Note: it's also possible to insert a text box by clicking the
Shape icon at the top toolbar and selecting the
shape from the Basic Shapes group.
- to add a Text Art object, click the
Text Art icon at the top toolbar, then click on the desired style template – the Text Art object will be added at the current cursor position. Select the default text within the text box with the mouse and replace it with your own text.
diff --git a/apps/documenteditor/main/resources/help/en/images/right_image.png b/apps/documenteditor/main/resources/help/en/images/right_image.png
index 37495b011..ee15ec0d1 100644
Binary files a/apps/documenteditor/main/resources/help/en/images/right_image.png and b/apps/documenteditor/main/resources/help/en/images/right_image.png differ
diff --git a/apps/documenteditor/main/resources/help/ru/UsageInstructions/InsertImages.htm b/apps/documenteditor/main/resources/help/ru/UsageInstructions/InsertImages.htm
index 51d149682..dc61a42bf 100644
--- a/apps/documenteditor/main/resources/help/ru/UsageInstructions/InsertImages.htm
+++ b/apps/documenteditor/main/resources/help/ru/UsageInstructions/InsertImages.htm
@@ -34,7 +34,7 @@
Некоторые параметры изображения можно изменить с помощью вкладки Параметры изображения на правой боковой панели. Чтобы ее активировать, щелкните по изображению и выберите значок Параметры изображения
справа. Здесь можно изменить следующие свойства:
- - Размер - используется, чтобы просмотреть текущую Ширину и Высоту изображения или при необходимости восстановить размер изображения По умолчанию.
+ - Размер - используется, чтобы просмотреть текущую Ширину и Высоту изображения. При необходимости можно восстановить размер изображения по умолчанию, нажав кнопку По умолчанию. Кнопка Вписать позволяет изменить размер изображения таким образом, чтобы оно занимало все пространство между левым и правым полями страницы.
- Стиль обтекания - используется, чтобы выбрать один из доступных стилей обтекания текстом - в тексте, вокруг рамки, по контуру, сквозное, сверху и снизу, перед текстом, за текстом (для получения дополнительной информации смотрите описание дополнительных параметров ниже).
- Заменить изображение - используется, чтобы заменить текущее изображение, загрузив другое из файла или по URL.
diff --git a/apps/documenteditor/main/resources/help/ru/UsageInstructions/InsertTextObjects.htm b/apps/documenteditor/main/resources/help/ru/UsageInstructions/InsertTextObjects.htm
index fee1bbe5e..7b85dfa82 100644
--- a/apps/documenteditor/main/resources/help/ru/UsageInstructions/InsertTextObjects.htm
+++ b/apps/documenteditor/main/resources/help/ru/UsageInstructions/InsertTextObjects.htm
@@ -17,7 +17,7 @@
- перейдите на вкладку Вставка верхней панели инструментов,
- выберите нужный тип текстового объекта:
- - чтобы добавить текстовое поле, щелкните по значку
Текст на верхней панели инструментов, затем щелкните там, где требуется поместить надпись, удерживайте кнопку мыши и перетаскивайте границу текстового поля, чтобы задать его размер. Когда вы отпустите кнопку мыши, в добавленном текстовом поле появится курсор, и вы сможете ввести свой текст.
+ - чтобы добавить текстовое поле, щелкните по значку
Надпись на верхней панели инструментов, затем щелкните там, где требуется поместить надпись, удерживайте кнопку мыши и перетаскивайте границу текстового поля, чтобы задать его размер. Когда вы отпустите кнопку мыши, в добавленном текстовом поле появится курсор, и вы сможете ввести свой текст.
Примечание: надпись можно также вставить, если щелкнуть по значку
Фигура на верхней панели инструментов и выбрать фигуру
из группы Основные фигуры.
- чтобы добавить объект Text Art, щелкните по значку
Text Art, затем щелкните по нужному шаблону стиля – объект Text Art будет добавлен в текущей позиции курсора. Выделите мышью стандартный текст внутри текстового поля и напишите вместо него свой текст.
diff --git a/apps/documenteditor/main/resources/help/ru/images/right_image.png b/apps/documenteditor/main/resources/help/ru/images/right_image.png
index 7363fd896..c7ff41c30 100644
Binary files a/apps/documenteditor/main/resources/help/ru/images/right_image.png and b/apps/documenteditor/main/resources/help/ru/images/right_image.png differ
diff --git a/apps/documenteditor/main/resources/less/leftmenu.less b/apps/documenteditor/main/resources/less/leftmenu.less
index 7806a3f9a..faf5a8bc4 100644
--- a/apps/documenteditor/main/resources/less/leftmenu.less
+++ b/apps/documenteditor/main/resources/less/leftmenu.less
@@ -71,7 +71,7 @@ button.notify .btn-menu-comments {background-position: -0*@toolbar-icon-size -60
color: #6e4e00 !important;
white-space: nowrap;
line-height: 20px;
- writing-mode: vertical-rl;
+ writing-mode: tb-rl;
-moz-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-webkit-transform: rotate(180deg);
diff --git a/apps/documenteditor/mobile/app/controller/Main.js b/apps/documenteditor/mobile/app/controller/Main.js
index e8ea1172a..732181e11 100644
--- a/apps/documenteditor/mobile/app/controller/Main.js
+++ b/apps/documenteditor/mobile/app/controller/Main.js
@@ -213,7 +213,8 @@ define([
if (data.doc) {
this.permissions = $.extend(this.permissions, data.doc.permissions);
- var _user = new Asc.asc_CUserInfo();
+ var _permissions = $.extend({}, data.doc.permissions),
+ _user = new Asc.asc_CUserInfo();
_user.put_Id(this.appOptions.user.id);
_user.put_FullName(this.appOptions.user.fullname);
@@ -227,6 +228,12 @@ define([
docInfo.put_UserInfo(_user);
docInfo.put_CallbackUrl(this.editorConfig.callbackUrl);
docInfo.put_Token(data.doc.token);
+ docInfo.put_Permissions(_permissions);
+
+ var type = /^(?:(pdf|djvu|xps))$/.exec(data.doc.fileType);
+ if (type && typeof type[1] === 'string') {
+ this.permissions.edit = this.permissions.review = false;
+ }
}
this.api.asc_registerCallback('asc_onGetEditorPermissions', _.bind(this.onEditorPermissions, this));
@@ -561,7 +568,7 @@ define([
text: me.textBuyNow,
bold: true,
onClick: function() {
- window.open('http://www.onlyoffice.com/enterprise-edition.aspx', "_blank");
+ window.open('https://www.onlyoffice.com', "_blank");
}
},
{
diff --git a/apps/documenteditor/mobile/locale/de.json b/apps/documenteditor/mobile/locale/de.json
index 9243cc395..17375dca2 100644
--- a/apps/documenteditor/mobile/locale/de.json
+++ b/apps/documenteditor/mobile/locale/de.json
@@ -107,7 +107,7 @@
"DE.Controllers.Main.textContactUs": "Verkaufsteam kontaktieren",
"DE.Controllers.Main.textDone": "Fertig",
"DE.Controllers.Main.textLoadingDocument": "Dokument wird geladen",
- "DE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE Open Source Version",
+ "DE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE Verbindungsbeschränkung",
"DE.Controllers.Main.textOK": "OK",
"DE.Controllers.Main.textPassword": "Kennwort",
"DE.Controllers.Main.textPreloader": "Ladevorgang...",
@@ -146,7 +146,7 @@
"DE.Controllers.Main.uploadImageTextText": "Bild wird hochgeladen...",
"DE.Controllers.Main.uploadImageTitleText": "Bild wird hochgeladen",
"DE.Controllers.Main.warnLicenseExp": "Ihre Lizenz ist abgelaufen.
Bitte aktualisieren Sie Ihre Lizenz und laden Sie die Seite neu.",
- "DE.Controllers.Main.warnNoLicense": "Sie nutzen die Open Source Version von ONLYOFFICE. Die Version hat gewisse Einschränkungen für gleichzeitige Verbindungen zu Dokumentenserver (20 Verbindungen in einer Zeit).
Wenn Sie mehr Verbindungen benötigen, erwerben Sie eine kommerzielle Lizenz.",
+ "DE.Controllers.Main.warnNoLicense": "Diese Version von ONLYOFFICE Editoren hat gewisse Einschränkungen für gleichzeitige Verbindungen zu Dokumentenserver.
Wenn Sie mehr Verbindungen benötigen, aktualisieren Sie diese Version oder erwerben Sie eine kommerzielle Lizenz.",
"DE.Controllers.Main.warnProcessRightsChange": "Das Recht, die Datei zu bearbeiten, wurde Ihnen verweigert.",
"DE.Controllers.Search.textNoTextFound": "Der Text wurde nicht gefunden.",
"DE.Controllers.Search.textReplaceAll": "Alle ersetzen",
@@ -375,4 +375,4 @@
"DE.Views.Settings.textWords": "Wörter",
"DE.Views.Settings.unknownText": "Unbekannt",
"DE.Views.Toolbar.textBack": "Zurück"
-}
+}
\ No newline at end of file
diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json
index 65bbdb340..856671908 100644
--- a/apps/documenteditor/mobile/locale/en.json
+++ b/apps/documenteditor/mobile/locale/en.json
@@ -107,7 +107,7 @@
"DE.Controllers.Main.textContactUs": "Contact sales",
"DE.Controllers.Main.textDone": "Done",
"DE.Controllers.Main.textLoadingDocument": "Loading document",
- "DE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE open source version",
+ "DE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE connection limitation",
"DE.Controllers.Main.textOK": "OK",
"DE.Controllers.Main.textPassword": "Password",
"DE.Controllers.Main.textPreloader": "Loading... ",
@@ -146,7 +146,7 @@
"DE.Controllers.Main.uploadImageTextText": "Uploading image...",
"DE.Controllers.Main.uploadImageTitleText": "Uploading Image",
"DE.Controllers.Main.warnLicenseExp": "Your license has expired.
Please update your license and refresh the page.",
- "DE.Controllers.Main.warnNoLicense": "You are using an open source version of ONLYOFFICE. The version has limitations for concurrent connections to the document server (20 connections at a time).
If you need more please consider purchasing a commercial license.",
+ "DE.Controllers.Main.warnNoLicense": "This version of ONLYOFFICE Editors has certain limitations for concurrent connections to the document server.
If you need more please consider upgrading your current license or purchasing a commercial one.",
"DE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
"DE.Controllers.Search.textNoTextFound": "Text not Found",
"DE.Controllers.Search.textReplaceAll": "Replace All",
diff --git a/apps/presentationeditor/embed/js/ApplicationController.js b/apps/presentationeditor/embed/js/ApplicationController.js
index b4022ddfe..9311fe8cb 100644
--- a/apps/presentationeditor/embed/js/ApplicationController.js
+++ b/apps/presentationeditor/embed/js/ApplicationController.js
@@ -98,6 +98,7 @@ var ApplicationController = new(function(){
docInfo.put_Format(docConfig.fileType);
docInfo.put_VKey(docConfig.vkey);
docInfo.put_Token(docConfig.token);
+ docInfo.put_Permissions(permissions);
if (api) {
api.asc_registerCallback('asc_onGetEditorPermissions', onEditorPermissions);
diff --git a/apps/presentationeditor/main/app.reporter.js b/apps/presentationeditor/main/app.reporter.js
index 80fd60cee..383955224 100644
--- a/apps/presentationeditor/main/app.reporter.js
+++ b/apps/presentationeditor/main/app.reporter.js
@@ -107,6 +107,7 @@ require([
docInfo.put_VKey(data.vkey);
docInfo.put_Options(data.options);
docInfo.put_Token(data.token);
+ docInfo.put_Permissions( data.permissions);
}
api.preloadReporter(data);
@@ -134,7 +135,10 @@ require([
// api.asc_registerCallback('asc_onOpenDocumentProgress', onOpenDocument);
api.asc_registerCallback('asc_onGetEditorPermissions', onEditorPermissions);
- api.sendFromReporter('i:am:ready');
+ setTimeout(function(){
+ // waiting for an event to be subscribed
+ api.sendFromReporter('i:am:ready');
+ }, 500);
}, function(err) {
if (err.requireType == 'timeout' && !reqerr && window.requireTimeourError) {
diff --git a/apps/presentationeditor/main/app/controller/LeftMenu.js b/apps/presentationeditor/main/app/controller/LeftMenu.js
index 6540455fe..7495643d5 100644
--- a/apps/presentationeditor/main/app/controller/LeftMenu.js
+++ b/apps/presentationeditor/main/app/controller/LeftMenu.js
@@ -185,7 +185,7 @@ define([
this.leftMenu.btnChat.hide();
this.leftMenu.btnComments.hide();
}
- this.mode.isTrial && this.leftMenu.setDeveloperMode(true);
+ this.mode.trialMode && this.leftMenu.setDeveloperMode(this.mode.trialMode);
/** coauthoring end **/
Common.util.Shortcuts.resumeEvents();
this.leftMenu.btnThumbs.toggle(true);
@@ -198,7 +198,7 @@ define([
this.leftMenu.setOptionsPanel('plugins', this.getApplication().getController('Common.Controllers.Plugins').getView('Common.Views.Plugins'));
} else
this.leftMenu.btnPlugins.hide();
- this.mode.isTrial && this.leftMenu.setDeveloperMode(true);
+ this.mode.trialMode && this.leftMenu.setDeveloperMode(this.mode.trialMode);
},
clickMenuFileItem: function(menu, action, isopts) {
@@ -254,6 +254,11 @@ define([
// window["AscInputMethod"]["SogouPinyin"] = value;
}
+ if (Common.Utils.isChrome) {
+ value = Common.localStorage.getBool("pe-settings-inputsogou");
+ this.api.setInputParams({"SogouPinyin" : value});
+ }
+
/** coauthoring begin **/
if (this.mode.isEdit && !this.mode.isOffline && this.mode.canCoAuthoring) {
value = Common.localStorage.getBool("pe-settings-coauthmode", true);
diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js
index 09eddb963..29588c3a3 100644
--- a/apps/presentationeditor/main/app/controller/Main.js
+++ b/apps/presentationeditor/main/app/controller/Main.js
@@ -314,6 +314,7 @@ define([
docInfo.put_UserInfo(_user);
docInfo.put_CallbackUrl(this.editorConfig.callbackUrl);
docInfo.put_Token(data.doc.token);
+ docInfo.put_Permissions(this.permissions);
//docInfo.put_OfflineApp(this.editorConfig.nativeApp === true);
}
@@ -615,8 +616,8 @@ define([
if (Common.Utils.isChrome) {
value = Common.localStorage.getBool("pe-settings-inputsogou");
+ me.api.setInputParams({"SogouPinyin" : value});
Common.Utils.InternalSettings.set("pe-settings-inputsogou", value);
- // window["AscInputMethod"]["SogouPinyin"] = value;
}
/** coauthoring begin **/
@@ -753,7 +754,7 @@ define([
primary: 'buynow',
callback: function(btn) {
if (btn == 'buynow')
- window.open('http://www.onlyoffice.com/enterprise-edition.aspx', "_blank");
+ window.open('https://www.onlyoffice.com', "_blank");
else if (btn == 'contact')
window.open('mailto:sales@onlyoffice.com', "_blank");
}
@@ -806,7 +807,7 @@ define([
this.appOptions.canForcesave = this.appOptions.isEdit && !this.appOptions.isOffline && (typeof (this.editorConfig.customization) == 'object' && !!this.editorConfig.customization.forcesave);
this.appOptions.forcesave = this.appOptions.canForcesave;
this.appOptions.canEditComments= this.appOptions.isOffline || !(typeof (this.editorConfig.customization) == 'object' && this.editorConfig.customization.commentAuthorOnly);
- this.appOptions.isTrial = params.asc_getTrial();
+ this.appOptions.trialMode = params.asc_getLicenseMode();
this.appOptions.canProtect = this.appOptions.isDesktopApp && this.api.asc_isSignaturesSupport();
this._state.licenseWarning = (licType===Asc.c_oLicenseResult.Connections) && this.appOptions.canEdit && this.editorConfig.mode !== 'view';
@@ -1735,9 +1736,10 @@ define([
if (plugins) {
var arr = [], arrUI = [];
plugins.pluginsData.forEach(function(item){
- if (uiCustomize!==undefined && _.find(arr, function(arritem) {
- return (arritem.get('baseUrl') == item.baseUrl || arritem.get('guid') == item.guid);
- })) return;
+ if (_.find(arr, function(arritem) {
+ return (arritem.get('baseUrl') == item.baseUrl || arritem.get('guid') == item.guid);
+ }) || pluginStore.findWhere({baseUrl: item.baseUrl}) || pluginStore.findWhere({guid: item.guid}))
+ return;
var variationsArr = [],
pluginVisible = false;
@@ -1775,7 +1777,7 @@ define([
this.UICustomizePlugins = arrUI;
if ( !uiCustomize ) {
- if (pluginStore) pluginStore.reset(arr);
+ if (pluginStore) pluginStore.add(arr);
this.appOptions.canPlugins = !pluginStore.isEmpty();
}
} else if (!uiCustomize){
diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js
index a16caa756..f4f5f1e1a 100644
--- a/apps/presentationeditor/main/app/controller/Toolbar.js
+++ b/apps/presentationeditor/main/app/controller/Toolbar.js
@@ -805,7 +805,8 @@ define([
onAddSlide: function(picker, item, record) {
if (this.api) {
- this.api.AddSlide(record.get('data').idx);
+ if (record)
+ this.api.AddSlide(record.get('data').idx);
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
Common.component.Analytics.trackEvent('ToolBar', 'Add Slide');
@@ -821,7 +822,8 @@ define([
onChangeSlide: function(picker, item, record) {
if (this.api) {
- this.api.ChangeLayout(record.get('data').idx);
+ if (record)
+ this.api.ChangeLayout(record.get('data').idx);
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
Common.component.Analytics.trackEvent('ToolBar', 'Change Layout');
@@ -1502,6 +1504,8 @@ define([
},
onSelectChart: function(picker, item, record) {
+ if (!record) return;
+
var me = this,
type = record.get('type'),
chart = false;
@@ -1541,7 +1545,7 @@ define([
onListThemeSelect: function(combo, record) {
this._state.themeId = undefined;
- if (this.api)
+ if (this.api && record)
this.api.ChangeTheme(record.get('themeId'));
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
@@ -1769,7 +1773,8 @@ define([
equationPicker.on('item:click', function(picker, item, record, e) {
if (me.api) {
- me.api.asc_AddMath(record.get('data').equationType);
+ if (record)
+ me.api.asc_AddMath(record.get('data').equationType);
if (me.toolbar.btnsInsertText.pressed()) {
me.toolbar.btnsInsertText.toggle(false, true);
diff --git a/apps/presentationeditor/main/app/view/DocumentHolder.js b/apps/presentationeditor/main/app/view/DocumentHolder.js
index 498fe8502..1ea6ed717 100644
--- a/apps/presentationeditor/main/app/view/DocumentHolder.js
+++ b/apps/presentationeditor/main/app/view/DocumentHolder.js
@@ -304,6 +304,7 @@ define([
me._Height = me.cmpEl.height();
me._Width = me.cmpEl.width();
me._BodyWidth = $('body').width();
+ me._XY = undefined;
if (me.slideNumDiv) {
me.slideNumDiv.remove();
diff --git a/apps/presentationeditor/main/app/view/LeftMenu.js b/apps/presentationeditor/main/app/view/LeftMenu.js
index cf850daf2..7e7a77736 100644
--- a/apps/presentationeditor/main/app/view/LeftMenu.js
+++ b/apps/presentationeditor/main/app/view/LeftMenu.js
@@ -358,7 +358,7 @@ define([
if ( !this.$el.is(':visible') ) return;
if (!this.developerHint) {
- this.developerHint = $('' + this.txtDeveloper + '
').appendTo(this.$el);
+ this.developerHint = $('' + ((mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial : this.txtDeveloper) + '
').appendTo(this.$el);
this.devHeight = this.developerHint.outerHeight();
$(window).on('resize', _.bind(this.onWindowResize, this));
}
@@ -382,6 +382,7 @@ define([
tipSearch : 'Search',
tipSlides: 'Slides',
tipPlugins : 'Plugins',
- txtDeveloper: 'DEVELOPER MODE'
+ txtDeveloper: 'DEVELOPER MODE',
+ txtTrial: 'TRIAL MODE'
}, PE.Views.LeftMenu || {}));
});
diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js
index c4949e3c9..2fc69bfc0 100644
--- a/apps/presentationeditor/main/app/view/Toolbar.js
+++ b/apps/presentationeditor/main/app/view/Toolbar.js
@@ -1669,9 +1669,10 @@ define([
});
btn.textartPicker.on('item:click', function(picker, item, record, e) {
- me.fireEvent('insert:textart', [record.get('data')]);
+ if (record)
+ me.fireEvent('insert:textart', [record.get('data')]);
- if (e.type !== 'click') this.menu.hide();
+ if (e.type !== 'click') btn.menu.hide();
});
}
},
@@ -1702,7 +1703,8 @@ define([
itemTemplate: _.template('')
})).on('item:click', function (picker, item, record, e) {
if (e.type !== 'click') Common.UI.Menu.Manager.hideAll();
- me.fireEvent('insert:shape', [record.get('data').shapeType]);
+ if (record)
+ me.fireEvent('insert:shape', [record.get('data').shapeType]);
});
});
}
diff --git a/apps/presentationeditor/main/app_dev.reporter.js b/apps/presentationeditor/main/app_dev.reporter.js
index 0653ab5e8..95d58fdc3 100644
--- a/apps/presentationeditor/main/app_dev.reporter.js
+++ b/apps/presentationeditor/main/app_dev.reporter.js
@@ -108,6 +108,7 @@ require([
docInfo.put_VKey(data.vkey);
docInfo.put_Options(data.options);
docInfo.put_Token(data.token);
+ docInfo.put_Permissions( data.permissions);
}
api.preloadReporter(data);
diff --git a/apps/presentationeditor/main/locale/de.json b/apps/presentationeditor/main/locale/de.json
index dce7e1b7f..c955ea1d7 100644
--- a/apps/presentationeditor/main/locale/de.json
+++ b/apps/presentationeditor/main/locale/de.json
@@ -112,6 +112,7 @@
"Common.Views.OpenDialog.cancelButtonText": "Abbrechen",
"Common.Views.OpenDialog.okButtonText": "OK",
"Common.Views.OpenDialog.txtEncoding": "Verschlüsselung",
+ "Common.Views.OpenDialog.txtIncorrectPwd": "Kennwort ist falsch.",
"Common.Views.OpenDialog.txtPassword": "Kennwort",
"Common.Views.OpenDialog.txtTitle": "%1-Optionen wählen",
"Common.Views.OpenDialog.txtTitleProtected": "Geschützte Datei",
@@ -195,7 +196,7 @@
"PE.Controllers.Main.textCloseTip": "Klicken Sie, um den Tipp zu schließen",
"PE.Controllers.Main.textContactUs": "Verkaufsteam kontaktieren",
"PE.Controllers.Main.textLoadingDocument": "Präsentation wird geladen ",
- "PE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE Open Source Version",
+ "PE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE Verbindungsbeschränkung",
"PE.Controllers.Main.textShape": "Form",
"PE.Controllers.Main.textStrict": "Formaler Modus",
"PE.Controllers.Main.textTryUndoRedo": "Undo/Redo Optionen sind für den halbformalen Zusammenbearbeitungsmodus deaktiviert.
Klicken Sie auf den Button \"Formaler Modus\", um den formalen Zusammenbearbeitungsmodus zu aktivieren, um die Datei, ohne Störungen anderer Benutzer zu bearbeiten und die Änderungen erst nachdem Sie sie gespeichert haben, zu senden. Sie können zwischen den Zusammenbearbeitungsmodi mit der Hilfe der erweiterten Einstellungen von Editor umschalten.",
@@ -276,7 +277,7 @@
"PE.Controllers.Main.warnBrowserIE9": "Die Anwendung hat geringe Fähigkeiten in IE9. Nutzen Sie IE10 oder höher.",
"PE.Controllers.Main.warnBrowserZoom": "Die aktuelle Zoom-Einstellung Ihres Webbrowsers wird nicht völlig unterstützt. Bitte stellen Sie die Standardeinstellung mithilfe der Tastenkombination Strg+0 wieder her.",
"PE.Controllers.Main.warnLicenseExp": "Ihre Lizenz ist abgelaufen.
Bitte aktualisieren Sie Ihre Lizenz und laden Sie die Seite neu.",
- "PE.Controllers.Main.warnNoLicense": "Sie nutzen die Open Source Version von ONLYOFFICE. Die Version hat gewisse Einschränkungen für gleichzeitige Verbindungen zu Dokumentenserver (20 Verbindungen in einer Zeit).
Wenn Sie mehr Verbindungen benötigen, erwerben Sie eine kommerzielle Lizenz.",
+ "PE.Controllers.Main.warnNoLicense": "Diese Version von ONLYOFFICE Editoren hat gewisse Einschränkungen für gleichzeitige Verbindungen zu Dokumentenserver.
Wenn Sie mehr Verbindungen benötigen, aktualisieren Sie diese Version oder erwerben Sie eine kommerzielle Lizenz.",
"PE.Controllers.Main.warnProcessRightsChange": "Das Recht, die Datei zu bearbeiten, wurde Ihnen verweigert.",
"PE.Controllers.Statusbar.zoomText": "Zoom {0}%",
"PE.Controllers.Toolbar.confirmAddFontName": "Die Schriftart, die Sie verwenden wollen, ist auf diesem Gerät nicht verfügbar.
Der Textstil wird mit einer der Systemschriften angezeigt, die gespeicherte Schriftart wird verwendet, wenn sie verfügbar ist.
Wollen Sie fortsetzen?",
diff --git a/apps/presentationeditor/main/locale/en.json b/apps/presentationeditor/main/locale/en.json
index 06d676151..faab8f225 100644
--- a/apps/presentationeditor/main/locale/en.json
+++ b/apps/presentationeditor/main/locale/en.json
@@ -261,7 +261,7 @@
"PE.Controllers.Main.textCloseTip": "Click to close the tip",
"PE.Controllers.Main.textContactUs": "Contact sales",
"PE.Controllers.Main.textLoadingDocument": "Loading presentation",
- "PE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE open source version",
+ "PE.Controllers.Main.textNoLicenseTitle": "ONLYOFFICE connection limitation",
"PE.Controllers.Main.textShape": "Shape",
"PE.Controllers.Main.textStrict": "Strict mode",
"PE.Controllers.Main.textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.
Click the 'Strict mode' button to switch to the Strict co-editing mode to edit the file without other users interference and send your changes only after you save them. You can switch between the co-editing modes using the editor Advanced settings.",
@@ -343,7 +343,7 @@
"PE.Controllers.Main.warnBrowserIE9": "The application has low capabilities on IE9. Use IE10 or higher",
"PE.Controllers.Main.warnBrowserZoom": "Your browser current zoom setting is not fully supported. Please reset to the default zoom by pressing Ctrl+0.",
"PE.Controllers.Main.warnLicenseExp": "Your license has expired.
Please update your license and refresh the page.",
- "PE.Controllers.Main.warnNoLicense": "You are using an open source version of ONLYOFFICE. The version has limitations for concurrent connections to the document server (20 connections at a time).
If you need more please consider purchasing a commercial license.",
+ "PE.Controllers.Main.warnNoLicense": "This version of ONLYOFFICE Editors has certain limitations for concurrent connections to the document server.
If you need more please consider upgrading your current license or purchasing a commercial one.",
"PE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
"PE.Controllers.Statusbar.zoomText": "Zoom {0}%",
"PE.Controllers.Toolbar.confirmAddFontName": "The font you are going to save is not available on the current device.
The text style will be displayed using one of the system fonts, the saved font will be used when it is available.
Do you want to continue?",
@@ -994,6 +994,7 @@
"PE.Views.LeftMenu.tipSupport": "Feedback & Support",
"PE.Views.LeftMenu.tipTitles": "Titles",
"PE.Views.LeftMenu.txtDeveloper": "DEVELOPER MODE",
+ "PE.Views.LeftMenu.txtTrial": "TRIAL MODE",
"PE.Views.ParagraphSettings.strLineHeight": "Line Spacing",
"PE.Views.ParagraphSettings.strParagraphSpacing": "Paragraph Spacing",
"PE.Views.ParagraphSettings.strSpacingAfter": "After",
diff --git a/apps/presentationeditor/main/locale/ru.json b/apps/presentationeditor/main/locale/ru.json
index 6c3d52e8d..4deba0e4e 100644
--- a/apps/presentationeditor/main/locale/ru.json
+++ b/apps/presentationeditor/main/locale/ru.json
@@ -196,7 +196,7 @@
"PE.Controllers.Main.textCloseTip": "Щелкните, чтобы закрыть эту подсказку",
"PE.Controllers.Main.textContactUs": "Связаться с отделом продаж",
"PE.Controllers.Main.textLoadingDocument": "Загрузка презентации",
- "PE.Controllers.Main.textNoLicenseTitle": "Open source версия ONLYOFFICE",
+ "PE.Controllers.Main.textNoLicenseTitle": "Ограничение по числу подключений ONLYOFFICE",
"PE.Controllers.Main.textShape": "Фигура",
"PE.Controllers.Main.textStrict": "Строгий режим",
"PE.Controllers.Main.textTryUndoRedo": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.
Нажмите на кнопку 'Строгий режим' для переключения в Строгий режим совместного редактирования, чтобы редактировать файл без вмешательства других пользователей и отправлять изменения только после того, как вы их сохраните. Переключаться между режимами совместного редактирования можно с помощью Дополнительных параметров редактора.",
@@ -277,7 +277,7 @@
"PE.Controllers.Main.warnBrowserIE9": "В IE9 приложение имеет низкую производительность. Используйте IE10 или более позднюю версию.",
"PE.Controllers.Main.warnBrowserZoom": "Текущее значение масштаба страницы в браузере поддерживается не полностью. Вернитесь к масштабу по умолчанию, нажав Ctrl+0",
"PE.Controllers.Main.warnLicenseExp": "Истек срок действия лицензии.
Обновите лицензию, а затем обновите страницу.",
- "PE.Controllers.Main.warnNoLicense": "Вы используете open source версию ONLYOFFICE. Эта версия имеет ограничения по количеству одновременных подключений к серверу документов (20 подключений одновременно).
Если требуется больше, рассмотрите вопрос о покупке коммерческой лицензии.",
+ "PE.Controllers.Main.warnNoLicense": "Эта версия редакторов ONLYOFFICE имеет некоторые ограничения по количеству одновременных подключений к серверу документов.
Если требуется больше, рассмотрите вопрос об обновлении текущей лицензии или покупке коммерческой лицензии.",
"PE.Controllers.Main.warnProcessRightsChange": "Вам было отказано в праве на редактирование этого файла.",
"PE.Controllers.Statusbar.zoomText": "Масштаб {0}%",
"PE.Controllers.Toolbar.confirmAddFontName": "Шрифт, который вы хотите сохранить, недоступен на этом устройстве.
Стиль текста будет отображаться с помощью одного из системных шрифтов. Сохраненный шрифт будет использоваться, когда он станет доступен.
Вы хотите продолжить?",
@@ -840,6 +840,7 @@
"PE.Views.FileMenuPanels.Settings.strFast": "Быстрый",
"PE.Views.FileMenuPanels.Settings.strForcesave": "Всегда сохранять на сервере (в противном случае сохранять на сервере при закрытии документа)",
"PE.Views.FileMenuPanels.Settings.strInputMode": "Включить иероглифы",
+ "PE.Views.FileMenuPanels.Settings.strInputSogou": "Включить метод ввода Sogou Pinyin",
"PE.Views.FileMenuPanels.Settings.strShowChanges": "Отображать изменения при совместной работе",
"PE.Views.FileMenuPanels.Settings.strSpellCheckMode": "Включить проверку орфографии",
"PE.Views.FileMenuPanels.Settings.strStrict": "Строгий",
@@ -918,6 +919,7 @@
"PE.Views.LeftMenu.tipSupport": "Обратная связь и поддержка",
"PE.Views.LeftMenu.tipTitles": "Заголовки",
"PE.Views.LeftMenu.txtDeveloper": "РЕЖИМ РАЗРАБОТЧИКА",
+ "PE.Views.LeftMenu.txtTrial": "ПРОБНЫЙ РЕЖИМ",
"PE.Views.ParagraphSettings.strLineHeight": "Междустрочный интервал",
"PE.Views.ParagraphSettings.strParagraphSpacing": "Интервал между абзацами",
"PE.Views.ParagraphSettings.strSpacingAfter": "После",
diff --git a/apps/presentationeditor/main/resources/help/en/UsageInstructions/InsertText.htm b/apps/presentationeditor/main/resources/help/en/UsageInstructions/InsertText.htm
index 87a64da66..f721cc8b8 100644
--- a/apps/presentationeditor/main/resources/help/en/UsageInstructions/InsertText.htm
+++ b/apps/presentationeditor/main/resources/help/en/UsageInstructions/InsertText.htm
@@ -17,7 +17,7 @@
- Add a text passage anywhere on a slide. You can insert a text box (a rectangular frame that allows to enter text within it) or a Text Art object (a text box with a predefined font style and color that allows to apply some text effects). Depending on the necessary text object type you can do the following: