perf[Tinymce]: add language option (#2159)

This commit is contained in:
花裤衩 2019-05-27 15:04:34 +08:00 committed by GitHub
parent 5b943d71e9
commit e28701cde4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -64,7 +64,9 @@ export default {
fullscreen: false,
languageTypeList: {
'en': 'en',
'zh': 'zh_CN'
'zh': 'zh_CN',
'es': 'es_MX',
'ja': 'ja'
}
}
},
@ -114,6 +116,7 @@ export default {
const _this = this
window.tinymce.init({
selector: `#${this.tinymceId}`,
language: this.languageTypeList['en'],
height: this.height,
body_class: 'panel-body ',
object_resizing: false,