2016-08-09 12 views
0

が見つかりません。以下は、私が使用したコードです。TinyMCEのスペルチェックは、私は、CakePHPで正常に<code>TinyMCE</code>を実装しているし、今私は<code>spellchecker</code>を追加したいが、それは私に<code>404 not found error</code>を与える

tinymce.init({ 
    selector: "textarea.richtext", 
    theme: "modern", 
    width: 600, 
    height: 250, 
    plugins: [ 
     "advlist autolink link image lists charmap hr anchor pagebreak", 
     "searchreplace wordcount visualblocks visualchars fullscreen insertdatetime media nonbreaking", 
     "save table contextmenu directionality emoticons template paste textcolor code spellchecker" 
    ], 
    spellchecker_rpc_url: 'spellchecker.php', 
    browser_spellcheck : true, 
    content_css: "css/content.css", 
    toolbar: "insertfile undo redo | styleselect | spellchecker | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l  ink image | preview media fullpage | forecolor backcolor emoticons | code", 
    style_formats: [ 
     {title: 'Bold text', inline: 'b'}, 
     {title: 'Red text', inline: 'span', styles: {color: '#ff0000'}}, 
     {title: 'Red header', block: 'h1', styles: {color: '#ff0000'}}, 
     {title: 'Example 1', inline: 'span', classes: 'example1'}, 
     {title: 'Example 2', inline: 'span', classes: 'example2'}, 
     {title: 'Table styles'}, 
     {title: 'Table row 1', selector: 'tr', classes: 'tablerow1'} 
    ] 
}); 

し、エラーのTinyMCEがスペルチェックエンジンが付属していません

enter image description here

答えて

0

である - これはあなたがここに記載されているように、サーバーにインストールする必要があるものです:

https://www.tinymce.com/docs/get-started/spell-checking/

あなたに依存することができます...

  • ブラウザのスペルチェック
  • オープンソースのサーバー側のスペルチェック
  • 商用サーバー側のスペルチェック

これらのオプションは、上記のすべての参照ページに見直されます。

TinyMCEを実行するのにCDNを使用していますが、そのインスタンスにはスペルチェッカーのサーバー側コードがインストールされていないため、エラーが発生しています。あなたは本当にあなたのサーバーにスペルのものをインストールし、spellchecker_rpc_urlを正しく設定するために必要なTinyMCEのCDNコピーを実行することができます。

関連する問題

 関連する問題