我升级了我的网络应用程序以使用最新的 TinyMCE 版本 4.0.1。我的应用程序是国际化的,所以我也更新了语言包。
除字体选择下拉列表(fontselect、fontsizeselect、formatselect)外,一切似乎都正常工作并已翻译。
无论我用什么语言初始化 TinyMCE,它们都会显示:“字体系列”、“字体大小”和“段落”。
这是初始化代码:
<script type="text/javascript">
$(document).ready(function () {
tinymce.init({
selector: "textarea.tinyMCE",
skin: "lightgray",
language: "<%= System.Globalization.CultureInfo.CurrentUICulture.TwoLetterISOLanguageName %>",
plugins: "table,textcolor,link,image,code",
theme: "modern",
menubar: false,
toolbar1: "fontselect,fontsizeselect,formatselect,|,forecolor,backcolor,|,cut,copy,paste",
toolbar2: "bold,italic,underline,|,alignleft,aligncenter,alignright,alignjustify,|,bullist,numlist,|,removeformat,|,undo,redo",
toolbar3: "link,unlink,|,image,|,hr,|,code",
width: 640,
height: 320,
media_strict: false,
forced_root_block: false
});
});
</script>
我错过了什么?
最佳答案
有些地方的翻译似乎不完整,您可以直接在他们的翻译服务上贡献更正的翻译: https://www.transifex.com/projects/p/tinymce/
或为您的语言手动编辑语言文件 .js。
关于javascript - TinyMCE 4 字体工具栏未翻译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17522770/