Skip to content
Snippets Groups Projects
Commit 65373cf6 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #22737 TIME 0:15 fix base url for tinymce

parent 028f30c8
No related branches found
No related tags found
No related merge requests found
...@@ -109,11 +109,11 @@ export class CustomizationComponent implements OnInit, OnDestroy { ...@@ -109,11 +109,11 @@ export class CustomizationComponent implements OnInit, OnDestroy {
initMce() { initMce() {
const param = { const param = {
selector: '#login_message', selector: '#login_message',
base_url: this.functions.getBaseUrl() + '/tinymce/', base_url: `${this.functions.getBaseUrl().split('#')[0]}/tinymce/`,
height: '200', height: '200',
suffix: '.min', suffix: '.min',
extended_valid_elements : 'tag,class', extended_valid_elements : 'tag,class',
content_css: this.functions.getBaseUrl() + '/assets/custom_tinymce.css', content_css: `${this.functions.getBaseUrl().split('#')[0]}/assets/custom_tinymce.css`,
language: this.translate.instant('lang.langISO').replace('-', '_'), language: this.translate.instant('lang.langISO').replace('-', '_'),
language_url: `../node_modules/tinymce-i18n/langs/${this.translate.instant('lang.langISO').replace('-', '_')}.js`, language_url: `../node_modules/tinymce-i18n/langs/${this.translate.instant('lang.langISO').replace('-', '_')}.js`,
menubar: false, menubar: false,
......
...@@ -110,11 +110,11 @@ export class OtpComponent implements OnInit, OnDestroy { ...@@ -110,11 +110,11 @@ export class OtpComponent implements OnInit, OnDestroy {
initMce() { initMce() {
const param = { const param = {
selector: '#email_message', selector: '#email_message',
base_url: this.functions.getBaseUrl() + '/tinymce/', base_url: `${this.functions.getBaseUrl().split('#')[0]}/tinymce/`,
height: '200', height: '200',
suffix: '.min', suffix: '.min',
extended_valid_elements : 'tag,class', extended_valid_elements : 'tag,class',
content_css: this.functions.getBaseUrl() + '/assets/custom_tinymce.css', content_css: `${this.functions.getBaseUrl().split('#')[0]}/assets/custom_tinymce.css`,
language: this.translate.instant('lang.langISO').replace('-', '_'), language: this.translate.instant('lang.langISO').replace('-', '_'),
language_url: `../node_modules/tinymce-i18n/langs/${this.translate.instant('lang.langISO').replace('-', '_')}.js`, language_url: `../node_modules/tinymce-i18n/langs/${this.translate.instant('lang.langISO').replace('-', '_')}.js`,
menubar: false, menubar: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment