我想问这个小但非常重要的问题:(我下载了 CKeditor 4.3.2,相信我,我一直在互联网上寻找这个,但没有成功。)
我试图在工具栏中显示“笑脸”图标,但它没有显示,并且其他一些图标也会发生这种情况,例如“保存”、“打印”、“新页”,我不知道为什么。另外,当我插入视频链接时,也不会显示视频链接,以便人们在发布后观看它......一切都与其他人一起工作得很好,但与我刚刚提到的这些人不同!请!感谢您的回复!
PS:我在一些论坛上发现4.3.2版本中的图标已经改名了,你认为是这个原因吗?
这是我的代码:
CKEDITOR.editorConfig = function( config )
{
uiColor: '#14B8C4',
config.toolbar = 'Full';
`config.toolbar_Full =
[
{ name: 'document', items : [ 'Source','-', 'Save','NewPage','DocProps','Preview','Print','-','Templates', 'Emoticons' ] },//solo Source
{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo', 'clipboard' ] },//BIen
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt', 'TextColor' ] },//Solo SpellChecker
{ name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', //nada
'HiddenField' ] },
'/',
{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },//Todas
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },//Todas hasta Bloquiote
{ name: 'links', items : [ 'Link','Unlink','Anchor' ] }, //Todas
{ name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule',"Smiley",'SpecialChar','PageBreak','Iframe' ] }, //Falta flash, smiley, ifame
'/',
{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] }, //ninguno
{ name: 'tools', items : [ 'Maximize', 'ShowBlocks','-' ] }
];
//ToolBar groups configuration
config.toolbarGroups = [
{ name: 'document', groups: ['mode', 'document', 'doctools']},
{ name: 'clipboard', groups: ['clipboard', 'undo']},
{ name: 'editing', groups: ['find', 'selection', 'spellchecker']},
{ name: 'forms'},
'/',
{ name: 'basicstyles', groups: ['basicstyles', 'cleanup']},
{ name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi']},
{ name: 'links'},
{ name: 'insert'},
'/',
{ name: 'styles'},
{ name: 'colors'},
{ name: 'tools'},
{ name: 'others'},
];
};
Run Code Online (Sandbox Code Playgroud)
`
最后我得到了非常简单的解决方案。但是,在告诉你解决方案之前,我先告诉你原因:
解决方案是:转到下载 CKEditor 以及您选择的插件,在那里您将找到三个不同的软件包可供下载,下面还有另一个:“或者让我自定义我的 CKEditor”,单击它并“下载并自定义编辑器” 。
之后,您将被重定向到另一个页面,在该页面上您将看到两列,左侧显示默认情况下软件包附带的所有插件(如果您不需要,也可以删除一些插件)右栏显示了一些可以添加到 package() 中的插件。
希望这个解决方案对您有所帮助。
| 归档时间: |
|
| 查看次数: |
12256 次 |
| 最近记录: |