当前位置:网站首页>tinymce 如何实现动态国际化
tinymce 如何实现动态国际化
2022-08-03 12:53:00 【InfoQ】
tinymce 如何实现动态国际化
languagetinymce.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: truetpI18ntinymce.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
)=>{
}
})

边栏推荐
- 4年工作经验,多线程间的5种通信方式都说不出来,你信吗?
- In order to counteract the drop in sales and explore the low-end market, Weilai's new brand products are priced as low as 100,000?
- Basic principle of the bulk of the animation and shape the An animation tip point
- self-discipline
- An introduction to basic tools for selecting line tools (package church)
- The components of the basis of An animation movie clip animation between traditional filling
- Multithreading in Redis 6
- ECCV 2022|通往数据高效的Transformer目标检测器
- The maximum number of sliding window
- [数据仓库]分层概念,ODS,DM,DWD,DWS,DIM的概念「建议收藏」
猜你喜欢

Notepad++ 安装jsonview插件

An animation optimization of shape tween and optimization of traditional tweening

sessionStorage of BOM series
![[Blue Bridge Cup Trial Question 48] Scratch Dance Machine Game Children's Programming Scratch Blue Bridge Cup Trial Question Explanation](/img/4c/b41d64c13d6903aa38cc46dea44519.png)
[Blue Bridge Cup Trial Question 48] Scratch Dance Machine Game Children's Programming Scratch Blue Bridge Cup Trial Question Explanation

云计算服务主要安全风险及应对措施初探

PyTorch框架训练线性回归模型(CPU与GPU环境)

【OpenCV】 级联分类器训练模型

VLAN 实验

An introduction to 3D tools

How to disable software from running in the background in Windows 11?How to prevent apps from running in the background in Windows 11
随机推荐
Golang GMP principle
BOM系列之sessionStorage
[R] Use grafify for statistical plotting, ANOVA, intervention comparisons, and more!
The common problems in the futures account summary
查看GCC版本_qt版本
免费的网络传真平台_发传真不显示发送号码
Jmeter use
An animation optimization of traditional guide layer animation
leetcode 11. 盛最多水的容器
4年工作经验,多线程间的5种通信方式都说不出来,你信吗?
【OpenCV】 书本视图矫正 + 广告屏幕切换 透视变换图像处理
The new interface, jingdong comment interface
漫画:怎么证明sleep不释放锁,而wait释放锁?
HCIP-第十二天-MPLS+VNP
Notepad++ 安装jsonview插件
Five, the function calls
链游NFT元宇宙游戏系统开发技术方案及源码
self-discipline
软件测试面试(四)
使用工作队列管理器(四)