2

TinyMCE を使用しており、スペイン語 (es) で表示したい

TinyMCE のバージョン情報は次のとおりです。

majorVersion : '3', minorVersion : '3.9.2', releaseDate : '2010-09-29'

ドキュメントには、ここから言語パックをダウンロードし、ファイルを適切なフォルダーにコピーするように記載されています。

/tinymce/jscripts/tiny_mce/langs/
/tinymce/jscripts/tiny_mce/themes/advanced/langs/
/tinymce/jscripts/tiny_mce/plugins/<pluginname>/langs/

また、設定

    tinyMCE.init({

        // General options
        language: 'es',
        mode: "textareas",
        theme: "advanced",
        relative_urls : false,
        file_browser_callback : ekmUpload,
        plugins: "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",

        // Theme options
        theme_advanced_buttons1: "newdocument,save,print,|,code,preview,fullscreen,|,bold,italic,underline,strikethrough,forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2: "image,template,|,cut,copy,paste,pastetext,pasteword,|,search,|,bullist,numlist,|,sub,sup,|,undo,redo,|,link,unlink,anchor,|,hr,removeformat,",
        theme_advanced_buttons3: "",
        theme_advanced_toolbar_location: "top",
        theme_advanced_toolbar_align: "left",
        theme_advanced_statusbar_location: "bottom",
        theme_advanced_resizing: false,

        content_css : " ",
        editor_selector: "HTMLEditor",
        height : '500',
        width : '100%',
        convert_urls : false,

        inline_styles : true,

        save_enablewhendirty: true,
        save_onsavecallback: "SaveDocuments",

ここでのこの回答も同じアドバイスを提供します。

ただし、言語パック (zip ファイル) には、lang/es.js

これを行うと、スペイン語では何も表示されず、「フォーマット」、「フォントファミリー」、および「フォントサイズ」ドロップダウンはスペイン語で表示されません。

私は何が欠けていますか?

4

2 に答える 2

1

ダウンロードしたのは tinymce 4 用の言語ファイルです。tinymce 3 用の言語パックが必要です

于 2013-07-24T11:23:37.810 に答える
0

参照: http://www.tinymce.com/wiki.php/Configuration:language

例...

tinymce.init({ ... 言語: "sv_SE" ... });

あなたが持っている: 言語: 'es',

于 2015-10-08T22:02:47.203 に答える