当前位置:网站首页>tinymce 如何实现动态国际化
tinymce 如何实现动态国际化
2022-08-03 12:53:00 【InfoQ】
tinymce 如何实现动态国际化
language
tinymce.init({
selector: 'textarea.tinymce',
plugins: `code image imagetools media`,
toolbar: `code`,
skin: false,
language: 'ja',
min_height:240,
skeletonScreen: true,
content_css: false,
}).then(()=>{
tinymce.init({
selector: 'div#mytextarea',
menubar: 'file edit insert view format table tools help',
skin: false,
plugins: 'tpImportword',
toolbar: 'tpImportword',
content_css: false,
min_height:240,
skeletonScreen: true
}).then(()=>{
tinymce.init({
selector: 'div#mytextarea3',
skin: false,
language: 'zh_CN',
content_css: false,
min_height:240,
skeletonScreen: true,
plugins: `code`,
toolbar: `code`,
})
})
});

tinymce.init({...}).then(()=>{ tinymce.init({...}).then(()=>{ ... })... })

那么这个问题该 如何解决
editor.editorContainer.onmouseover = () => {
let _language = editor.settings.language
let _currentCodeVal = editor.editorManager.i18n.getCode()
_currentCodeVal != _language && editor.editorManager.i18n.setCode(_language)
};
tinymce.init({
language: 'zh_CN',
content_css: false,
tp_i18n: true,
min_height:240,
plugins: `code`,
toolbar: `code`,
})

tp_i18n_langs: true
tpI18n
tinymce.init({
selector: 'div#mytextarea',
menubar: 'file edit insert view format table tools help mymenubar',
skin: false,
tp_i18n: true,
plugins: 'tpImportword',
toolbar: 'tpImportword',
tp_i18n_langs: true,
content_css: false,
menu: {
mymenubar: { title: 'Extension', items: 'tpI18n' },
},
min_height:240,
skeletonScreen: true,
setup: (
editor
)=>{
}
})


边栏推荐
猜你喜欢
Jmeter use
Hanyuan Hi-Tech G8032 standard ERPS ring network switch Gigabit 4 optical 10 electrical industrial Ethernet switch ring network + WEB management + SNMP VLAN planning
基于php家具销售管理系统获取(php毕业设计)
[Blue Bridge Cup Trial Question 48] Scratch Dance Machine Game Children's Programming Scratch Blue Bridge Cup Trial Question Explanation
An工具介绍之骨骼工具
The common problems in the futures account summary
Image fusion GAN-FM study notes
基于php志愿者服务平台管理系统获取(php毕业设计)
IDEA的模板(Templates)
Win11怎么禁止软件后台运行?Win11系统禁止应用在后台运行的方法
随机推荐
为冲销量下探中低端市场,蔚来新品牌产品定价低至10万?
Multithreading in Redis 6
客户:我们系统太多,能不能实现多账号互通?
易观分析:2022年Q2中国网络零售B2C市场交易规模达23444.7亿元
Five, the function calls
VLAN 实验
Golang strings
The components of the basis of An animation movie clip animation between traditional filling
The common problems in the futures account summary
使用工作队列管理器(四)
An动画基础之元件的影片剪辑效果
IronOS, an open source system for portable soldering irons, supports a variety of portable DC, QC, PD powered soldering irons, and supports all standard functions of smart soldering irons
15. PARTITIONS「建议收藏」
JS get browser type
OpenCV 透视变换
链游NFT元宇宙游戏系统开发技术方案及源码
来广州找工作有一个多月了,今天终于有着落了,工资7000
An工具介绍之3D工具
Golang channel channel
[Microservice] Multi-level cache