0

我已经下载了一个 ckeditor 4.1.1,在 config.js 中有以下配置

    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 回答