[PE][SSE] Set custom font family
This commit is contained in:
parent
f062ebf0eb
commit
8f833709d1
|
@ -384,7 +384,6 @@ define([
|
|||
this.appOptions.customization.font.family && document.documentElement.style.setProperty("--font-family-base-custom", this.appOptions.customization.font.family);
|
||||
}
|
||||
|
||||
|
||||
this.editorConfig.user =
|
||||
this.appOptions.user = Common.Utils.fillUserInfo(this.editorConfig.user, this.editorConfig.lang, value ? (value + ' (' + this.appOptions.guestName + ')' ) : this.textAnonymous,
|
||||
Common.localStorage.getItem("guest-id") || ('uid-' + Date.now()));
|
||||
|
@ -1424,7 +1423,7 @@ define([
|
|||
}
|
||||
} else if (!this.appOptions.isDesktopApp && !this.appOptions.canBrandingExt &&
|
||||
this.editorConfig && this.editorConfig.customization && (this.editorConfig.customization.loaderName || this.editorConfig.customization.loaderLogo ||
|
||||
this.editorConfig.customization.font.family)) {
|
||||
this.editorConfig.customization.font && this.editorConfig.customization.font.family)) {
|
||||
Common.UI.warning({
|
||||
title: this.textPaidFeature,
|
||||
msg : this.textCustomLoader,
|
||||
|
|
|
@ -339,6 +339,10 @@ define([
|
|||
Common.Utils.InternalSettings.set("guest-username", value);
|
||||
Common.Utils.InternalSettings.set("save-guest-username", !!value);
|
||||
}
|
||||
if (this.appOptions.customization.font) {
|
||||
this.appOptions.customization.font.family && document.documentElement.style.setProperty("--font-family-base-custom", this.appOptions.customization.font.family);
|
||||
}
|
||||
|
||||
this.editorConfig.user =
|
||||
this.appOptions.user = Common.Utils.fillUserInfo(data.config.user, this.editorConfig.lang, value ? (value + ' (' + this.appOptions.guestName + ')' ) : this.textAnonymous,
|
||||
Common.localStorage.getItem("guest-id") || ('uid-' + Date.now()));
|
||||
|
@ -1040,7 +1044,8 @@ define([
|
|||
});
|
||||
}
|
||||
} else if (!this.appOptions.isDesktopApp && !this.appOptions.canBrandingExt &&
|
||||
this.editorConfig && this.editorConfig.customization && (this.editorConfig.customization.loaderName || this.editorConfig.customization.loaderLogo)) {
|
||||
this.editorConfig && this.editorConfig.customization && (this.editorConfig.customization.loaderName || this.editorConfig.customization.loaderLogo ||
|
||||
this.editorConfig.customization.font && this.editorConfig.customization.font.family)) {
|
||||
Common.UI.warning({
|
||||
title: this.textPaidFeature,
|
||||
msg : this.textCustomLoader,
|
||||
|
|
|
@ -377,6 +377,10 @@ define([
|
|||
Common.Utils.InternalSettings.set("guest-username", value);
|
||||
Common.Utils.InternalSettings.set("save-guest-username", !!value);
|
||||
}
|
||||
if (this.appOptions.customization.font) {
|
||||
this.appOptions.customization.font.family && document.documentElement.style.setProperty("--font-family-base-custom", this.appOptions.customization.font.family);
|
||||
}
|
||||
|
||||
this.editorConfig.user =
|
||||
this.appOptions.user = Common.Utils.fillUserInfo(this.editorConfig.user, this.editorConfig.lang, value ? (value + ' (' + this.appOptions.guestName + ')' ) : this.textAnonymous,
|
||||
Common.localStorage.getItem("guest-id") || ('uid-' + Date.now()));
|
||||
|
@ -1125,7 +1129,8 @@ define([
|
|||
});
|
||||
}
|
||||
} else if (!this.appOptions.isDesktopApp && !this.appOptions.canBrandingExt && !(this.appOptions.isEditDiagram || this.appOptions.isEditMailMerge || this.appOptions.isEditOle) &&
|
||||
this.editorConfig && this.editorConfig.customization && (this.editorConfig.customization.loaderName || this.editorConfig.customization.loaderLogo)) {
|
||||
this.editorConfig && this.editorConfig.customization && (this.editorConfig.customization.loaderName || this.editorConfig.customization.loaderLogo ||
|
||||
this.editorConfig.customization.font && this.editorConfig.customization.font.family)) {
|
||||
Common.UI.warning({
|
||||
title: this.textPaidFeature,
|
||||
msg : this.textCustomLoader,
|
||||
|
|
Loading…
Reference in a new issue