diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js
index 9742962d3..e28ae6dab 100644
--- a/apps/api/documents/api.js
+++ b/apps/api/documents/api.js
@@ -143,6 +143,37 @@
reviewDisplay: 'original', // original for viewer, markup for editor
trackChanges: undefined // true/false - open editor with track changes mode on/off,
},
+ layout: {
+ toolbar: {
+ file: {
+ close: false / true,
+ advanced: false / true,
+ info: {
+ application: false/true
+ } / false / true
+ } / false / true,
+ home: {} / false / true,
+ insert: {} / false / true,
+ layout: {} / false / true,
+ references: {} / false / true,
+ collaboration: {} / false / true
+ },
+ leftMenu: {
+ navigation: false/true
+ },
+ rightMenu: {
+ },
+ statusBar: {
+ textLang: false/true
+ docLang: false/true
+ }
+ },
+ features: {
+ spellcheck: {
+ mode: false/true // значение при первом открытии редактора
+ change: false/true // показывать настройку или скрывать
+ } / false / true // если не объект, то как и раньше - значение при первом открытии редактора
+ },
chat: true,
comments: true,
zoom: 100,
diff --git a/apps/common/main/lib/component/Mixtbar.js b/apps/common/main/lib/component/Mixtbar.js
index 44fc291ab..68ff16136 100644
--- a/apps/common/main/lib/component/Mixtbar.js
+++ b/apps/common/main/lib/component/Mixtbar.js
@@ -99,7 +99,8 @@ define([
'<% if (typeof items[i] == "object") { %>' +
'
' +
- '<% if (items[i].extcls) print(\' \' + items[i].extcls) %>">' +
+ '<% if (items[i].extcls) print(\' \' + items[i].extcls) %>"' +
+ '<% if (typeof items[i].layoutname == "string") print(" data-layout-name=" + \' \' + items[i].layoutname) + \' \' %>>' +
'<%= items[i].caption %>' +
'' +
'<% } %>' +
@@ -316,7 +317,7 @@ define([
return config.tabs[index].action;
}
- var _tabTemplate = _.template('<%= caption %>');
+ var _tabTemplate = _.template('" data-title="<%= caption %>" data-hint="0" data-hint-direction="bottom" data-hint-offset="small"><%= caption %>');
config.tabs[after + 1] = tab;
var _after_action = _get_tab_action(after);
diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js
index 79f34a522..55f5eaef6 100644
--- a/apps/documenteditor/main/app/controller/Toolbar.js
+++ b/apps/documenteditor/main/app/controller/Toolbar.js
@@ -3184,7 +3184,7 @@ define([
me.toolbar.render(_.extend({isCompactView: compactview}, config));
- var tab = {action: 'review', caption: me.toolbar.textTabCollaboration};
+ var tab = {action: 'review', caption: me.toolbar.textTabCollaboration, layoutname: 'collaboration'};
var $panel = me.application.getController('Common.Controllers.ReviewChanges').createToolbarPanel();
if ( $panel ) {
me.toolbar.addTab(tab, $panel, 5);
diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js
index c47061055..02d7b0212 100644
--- a/apps/documenteditor/main/app/view/Toolbar.js
+++ b/apps/documenteditor/main/app/view/Toolbar.js
@@ -109,11 +109,11 @@ define([
Common.UI.Mixtbar.prototype.initialize.call(this, {
template: _.template(template),
tabs: [
- {caption: me.textTabFile, action: 'file', extcls: 'canedit', haspanel:false},
- {caption: me.textTabHome, action: 'home', extcls: 'canedit'},
- {caption: me.textTabInsert, action: 'ins', extcls: 'canedit'},
- {caption: me.textTabLayout, action: 'layout', extcls: 'canedit'},
- {caption: me.textTabLinks, action: 'links', extcls: 'canedit'}
+ {caption: me.textTabFile, action: 'file', extcls: 'canedit', layoutname: 'file', haspanel:false},
+ {caption: me.textTabHome, action: 'home', extcls: 'canedit', layoutname: 'home'},
+ {caption: me.textTabInsert, action: 'ins', extcls: 'canedit', layoutname: 'insert'},
+ {caption: me.textTabLayout, action: 'layout', extcls: 'canedit', layoutname: 'layout'},
+ {caption: me.textTabLinks, action: 'links', extcls: 'canedit', layoutname: 'references'}
]
}
);