当前位置:网站首页>tinymce 如何实现动态国际化
tinymce 如何实现动态国际化
2022-08-02 13:19: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
)=>{
}
})

边栏推荐
猜你喜欢

How to improve the originality of self-media creation and create popular works?

图论之Floyd,多源图最短路如何暴力美学?

php - the first of three solid foundations

Openlayers Quick Start Tutorial

RESTful style (detailed introduction + case implementation)

分享一个Chrome控制台数据获取的例子

图论之Prim,最小生成树该怎么解?

鲁大师7月新机性能/流畅榜:性能跑分突破123万!

Win11怎么修改关机界面颜色?Win11修改关机界面颜色的方法

【C语言】剖析函数递归(1)
随机推荐
【C语言】剖析函数递归(1)
【622. 设计循环队列】
图论之Prim,最小生成树该怎么解?
Intouch System Platform IDE-1
Mysql index details (with pictures and texts)
Singleton pattern of seven kinds of writing, you know?
图文短视频自媒体怎么创作?如何让点击量达到10W?
图论之Floyd,多源图最短路如何暴力美学?
Detailed explanation of network flow (what information can the flow network diagram generally reflect)
方正璞华“劳动人事法律自助咨询服务平台”在武汉武昌区投入使用!
暑假集训-week2图论
ThinkPHP 5.1反序列化分析和poc
[b01lers2020]Welcome to Earth-1
GCC版本升级到指定版本
“二舅”火了,自媒体短视频“爆火”的基本要素,你知道吗?
86.(cesium之家)cesium叠加面接收阴影效果(gltf模型)
第48篇-timestamp2参数分析【2022-08-01】
Interpretation of new features | MySQL 8.0 GIPK invisible primary key
攻防世界----unfinish
Taurus.MVC V3.0.3 微服务开源框架发布:让.NET 架构在大并发的演进过程更简单。