Add api parameter customization.hideStartTips: hide theme tooltip

This commit is contained in:
Julia Radzhabova 2021-02-17 22:09:50 +03:00
parent 1dff1aaae3
commit 1bed0d1bf4
4 changed files with 5 additions and 4 deletions

View file

@ -156,7 +156,8 @@
plugins: true // can run plugins in document
macrosMode: 'warn' // warn about automatic macros, 'enable', 'disable', 'warn',
trackChanges: undefined // true/false - open editor with track changes mode on/off,
hideRulers: false, // hide or show rulers on first loading (presentation or document editor)
hideRulers: false, // hide or show rulers on first loading (presentation or document editor),
hideStartTips: false // hide help toolips on starting editors
},
plugins: {
autostart: ['asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}'],

View file

@ -328,7 +328,7 @@ define([
mnuitemDarkTheme.setChecked(Common.UI.Themes.isDarkTheme());
});
if (!Common.localStorage.getBool("hide-dark-theme-tip")) {
if (!Common.localStorage.getBool("hide-dark-theme-tip") && !(config.customization && config.customization.hideStartTips===true)) {
me.themeTip = new Common.UI.SynchronizeTip({
target: me.header.btnOptions.$el,
placement : 'bottom-left',

View file

@ -331,7 +331,7 @@ define([
mnuitemDarkTheme.setChecked(Common.UI.Themes.isDarkTheme());
});
if (!Common.localStorage.getBool("hide-dark-theme-tip")) {
if (!Common.localStorage.getBool("hide-dark-theme-tip") && !(config.customization && config.customization.hideStartTips===true)) {
me.themeTip = new Common.UI.SynchronizeTip({
target: me.header.btnOptions.$el,
placement : 'bottom-left',

View file

@ -342,7 +342,7 @@ define([
mnuitemDarkTheme.setChecked(Common.UI.Themes.isDarkTheme());
});
if (!Common.localStorage.getBool("hide-dark-theme-tip")) {
if (!Common.localStorage.getBool("hide-dark-theme-tip") && !(config.customization && config.customization.hideStartTips===true)) {
me.themeTip = new Common.UI.SynchronizeTip({
target: me.header.btnOptions.$el,
placement : 'bottom-left',