如何在TinyMCE中添加阿拉伯语?

时间:2015-07-09 02:23:32

标签: javascript tinymce

我的表单上有一个TinyMCE编辑器,但是当我插入阿拉伯语时,它不起作用:阿拉伯字符变为='?????????'。

这是我的代码:

<script type="text/javascript" src="<?php echo base_url(); ?>/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
    tinymce.init({
        mode : "specific_textareas",
        editor_selector : "mceEditor",
        convert_urls: false,
        plugins: [
            "advlist autolink lists link image charmap print preview anchor",
            "searchreplace visualblocks code fullscreen",
            "insertdatetime media table contextmenu paste"
            ],
            toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
    });
</script>

1 个答案:

答案 0 :(得分:0)

您是否下载并指定了tinyMCE的语言字体?

tinyMCE.init({
    language : "ar_SA", // arabic
    mode : "textareas",
    theme : "simple"   
});