我在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
答案 0 :(得分:0)
好吧,它的工作。它是缓存问题。你必须清理浏览器缓存以反映更改