perf[Tinymce]: refine tinymce lang
This commit is contained in:
parent
09a80688d2
commit
fd9ad8986c
|
@ -61,6 +61,7 @@ export default {
|
||||||
languageTypeList: {
|
languageTypeList: {
|
||||||
'en': 'en',
|
'en': 'en',
|
||||||
'zh': 'zh_CN',
|
'zh': 'zh_CN',
|
||||||
|
'es': 'es_MX',
|
||||||
'ja': 'ja'
|
'ja': 'ja'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -107,7 +108,7 @@ export default {
|
||||||
window.tinymce.init({
|
window.tinymce.init({
|
||||||
language: this.language,
|
language: this.language,
|
||||||
// language cnd URL, detail see https://github.com/PanJiaChen/tinymce-lang
|
// language cnd URL, detail see https://github.com/PanJiaChen/tinymce-lang
|
||||||
language_url: `https://cdn.jsdelivr.net/npm/tinymce-lang/langs/${this.language}.js`,
|
language_url: this.language === 'en' ? '' : `https://cdn.jsdelivr.net/npm/tinymce-lang/langs/${this.language}.js`,
|
||||||
selector: `#${this.tinymceId}`,
|
selector: `#${this.tinymceId}`,
|
||||||
height: this.height,
|
height: this.height,
|
||||||
body_class: 'panel-body ',
|
body_class: 'panel-body ',
|
||||||
|
|
Loading…
Reference in New Issue