Skip to content

Commit

Permalink
perf[Tinymce]: add language option (#2159)
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen authored May 27, 2019
1 parent 5b943d7 commit e28701c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Tinymce/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ export default {
fullscreen: false,
languageTypeList: {
'en': 'en',
'zh': 'zh_CN'
'zh': 'zh_CN',
'es': 'es_MX',
'ja': 'ja'
}
}
},
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e28701c

Please sign in to comment.