2017-08-22 3 views
2

データベースに格納されていないHTMLエンティティを示していますが、次のようにコードを示しています:CKEditorバージョンSource]ダイアログボックスには、私は、メニューバーにある「ソース」ボタンをクリックすると、私はページのHTMLソースを参照してください

<p>This&#32;is&#32;how&#32;the&#32;code&#32;is&#32;showing&#32;now</p> 
私はこのようにそれを表示したい場合は

は:

<p>This is how the code should be showing</p> 

私はそれがデータベースにそのようにそれを格納していたと思ったが、そうではありません。ソースを正しく表示するには、config.jsファイルで何を変更する必要がありますか?あなたが見ている何

CKEDITOR.editorConfig = function(config) { 

     config.language = 'en'; 
     config.uiColor = '#ededed'; 
     config.height = 500; 
     config.toolbarCanCollapse = false; 
     config.extraPlugins = 'font,justify,liststyle,filebrowser,colorbutton,panelbutton'; 
     config.allowedContent = true; 

    config.toolbarGroups = [ 
      { name: 'document',  groups: [ 'mode', 'document', 'doctools' ] }, 
      { name: 'forms', groups: [ 'forms' ] }, 
      { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, 
      { name: 'liststyle' }, 
      { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, 
      { name: 'editing',  groups: [ 'find', 'selection', 'spellchecker', 'editing' ] }, 
      { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] }, 
      { name: 'styles', groups: [ 'styles' ] }, 
      { name: 'links', groups: [ 'links' ] }, 
      { name: 'insert', groups: [ 'insert' ] }, 
      { name: 'colors', groups: [ 'colors' ] }, 
      { name: 'tools', groups: [ 'tools' ] }, 
      { name: 'others', groups: [ 'others' ] }, 
      { name: 'about', groups: [ 'about' ] }, 
      { name: 'tabletools' } 
     ]; 

     config.removeButtons = 'About'; 
     config.format_tags = 'p;h1;h2;h3;pre'; 

}; 

答えて

0

はスペースのためHTML Entityです:

EDIT

は、ここに私の完全なconfig.jsファイルです。ほとんどの場合、あなたのエディタで設定の下に使用していますconfig.js

 var editor = CKEDITOR.replace('editor1', { 
      entities_additional : '#32' 
     }); 

これは次のようになります。config.entities_additional = '#32';

+0

上記の私の編集を参照してください。私の 'config.js'ファイルにそのコードは表示されません。 –

+0

** HTMLページに余分なエディタ設定がありますか?**あなたの設定は標準的で、これらの設定ではエンティティが表示されません。 **どのブラウザでそれが起こるのですか?カスタムプラグインを無効にして、違いがあるかどうかを確認できますか?**カスタムブラウザプラグインの中には、JavaScriptアプリケーションの動作を変更したり、 **最後に、サードパーティのスクリプトをチェックすることができますか?**エンティティにスペースを変更するスクリプトがあるか、またはエディタモードが変更されたときにエディタリスナが作成されているかもしれません。 –

関連する問題