| | |
| | | import plugins from './plugins' |
| | | import toolbar from './toolbar' |
| | | import load from './dynamicLoadScript' |
| | | |
| | | // why use this cdn, detail see https://github.com/PanJiaChen/tinymce-all-in-one |
| | | const tinymceCDN = 'https://cdn.jsdelivr.net/npm/tinymce-all-in-one@4.9.3/tinymce.min.js' |
| | | const tinymceCDN ='https://cdn.staticfile.org/tinymce/4.9.3/tinymce.min.js'; |
| | | |
| | | export default { |
| | | name: 'Tinymce', |
| | |
| | | this.$message.error(err.message) |
| | | return |
| | | } |
| | | this.initTinymce() |
| | | this.initTinymce(); |
| | | }) |
| | | }, |
| | | initTinymce() { |
| | | const _this = this |
| | | window.tinymce.init({ |
| | | selector: `#${this.tinymceId}`, |
| | | language: this.languageTypeList['zh'], |
| | | // language: this.languageTypeList['zh'], |
| | | language: 'zh_CN', |
| | | language_url:require('./zh_CN.js'), |
| | | height: this.height, |
| | | body_class: 'panel-body ', |
| | | object_resizing: false, |