2013-04-29 67 views
0

我已經下載在config.jsCKEDITOR 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'; 
    }; 

一個CKEditor的4.1.1具有以下配置雖然與我的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 

回答

0

好了,它的工作。它是緩存問題。您必須清理瀏覽器緩存以反映更改