perf[Tinymce]: refine tinymce lang

This commit is contained in:
Pan 2019-05-03 16:58:33 +08:00
parent 09a80688d2
commit fd9ad8986c
1 changed files with 2 additions and 1 deletions

View File

@ -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 ',