0

config.js に次の構成を持つ ckeditor 4.1.1 をダウンロードしました

    CKEDITOR.editorConfig = function( config ) {
config.toolbarGroups = [
    { name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
    { name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },
    { name: 'links' },
    { name: 'insert' },
    { name: 'forms' },
    { name: 'tools' },
    { name: 'document',    groups: [ 'mode', 'document', 'doctools' ] },
    { name: 'others' },
    '/',
    { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
    { name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
    { name: 'styles' },
    { name: 'colors' },
    { name: 'about' }
];
config.removeButtons = 'Underline,Subscript,Superscript';
config.format_tags = 'p;h1;h2;h3;pre';
config.removeDialogTabs = 'image:advanced;link:advanced';
   };

私のphpファイルと統合している間、私は以下のテキストエリアとスクリプトを使用しました:

<textarea class="text-input textarea" id="textarea" name="txtShortDescription" cols="79" rows="15"></textarea>
<textarea id="txtFullDescription" name="txtFullDescription" cols="79" rows="15"></textarea>

<script type="text/javascript">
CKEDITOR.replace( 'txtShortDescription');
CKEDITOR.replace( 'txtFullDescription' );   
</script>

問題は、ckeditorが表示されず、エラーが発生することです

  Error: TypeError: y is undefined
  Source File: http://<path>/ckeditor/ckeditor.js on line 42
4

1 に答える 1

0

うまくいきました。キャッシュの問題でした。変更を反映するには、ブラウザのキャッシュを消去する必要があります。

于 2013-04-29T12:11:53.803 に答える