1
Download CKEditor 3.2.1 here: http://ckeditor.com/download
在此处下载CKEditor 3.2.1:http://ckeditor.com/download
Extract the downloaded .tar.gz file.
解压缩下载的.tar.gz文件。
Copy the contents of the ckeditor folder into /sites/all/modules/contrib/ckeditor/ckeditor
将ckeditor文件夹的内容复制到/ sites / all / modules / contrib / ckeditor / ckeditor
At this point you may want to edit the available toolbar options removing any unnecessary items. In most cases, I prefer the following configuration as it allows maximum fanciness while minimizing the types of markup which could override the site's styling
此时,您可能希望编辑可用的工具栏选项,删除任何不必要的项目。在大多数情况下,我更喜欢以下配置,因为它允许最大的功能,同时最小化可能覆盖网站样式的标记类型
edit /sites/all/modules/contrib/ckeditor/ckeditor.config.js
Create a new toolbar by adding the following configuration to ckeditor.config.js:
通过将以下配置添加到ckeditor.config.js来创建新工具栏:
**
config.toolbar_DrupalCustom = [
['Source'],
['Cut','Copy','Paste','PasteText','-','SpellChecker', 'Scayt'],
['Undo','Redo','Find','Replace','-','SelectAll','RemoveFormat'],
['Image','HorizontalRule','Smiley','SpecialChar'],
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Blockquote'],
['Link','Unlink','Anchor','LinkToNode', 'LinkToMenu'],
['Format','Font','FontSize'],
['TextColor','BGColor'],
['Maximize', 'ShowBlocks'],
['DrupalBreak', 'DrupalPageBreak']
];
** You can now select this option within the CKEditor Appearance section at /admin/settings/ckeditor/edit/Advanced
**您现在可以在/ admin / settings / ckeditor / edit / Advanced的CKEditor外观部分中选择此选项