perf[Tinymce]: refine tinymce lang
This commit is contained in:
parent
09a80688d2
commit
fd9ad8986c
|
@ -61,6 +61,7 @@ export default {
|
|||
languageTypeList: {
|
||||
'en': 'en',
|
||||
'zh': 'zh_CN',
|
||||
'es': 'es_MX',
|
||||
'ja': 'ja'
|
||||
}
|
||||
}
|
||||
|
@ -107,7 +108,7 @@ export default {
|
|||
window.tinymce.init({
|
||||
language: this.language,
|
||||
// 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}`,
|
||||
height: this.height,
|
||||
body_class: 'panel-body ',
|
||||
|
|
Loading…
Reference in New Issue