[英]How can I make my ckEditor menu buttons show up on two rows instead of four?
I downloaded the ckEditor full package. 我下载了ckEditor完整软件包。 The toolbar buttons appear on four rows but I have a very wide editor window area and I would like to cut this down to two or three.
工具栏按钮出现在四行中,但是我的编辑器窗口区域非常宽,我希望将其缩减为两到三个。 Can someone help by giving me some advice on how I could change this.
有人可以通过给我一些有关如何更改此方法的建议来提供帮助。 I did look at the documentation but I have to say I am more confused than ever.
我确实看过文档,但是不得不说我比以往任何时候都更加困惑。 I am not sure if I should be dealing with toolbar groups and not sure which group is which.
我不确定是否应该处理工具栏组,也不确定哪个组是哪个。
Does anyone have examples of what they have done. 有谁有自己做过的事的例子。
You should 2 things: 您应该做两件事:
make your textarea wider 使您的文本区域更宽
delete some '/'
from your config file, as it means newline in configuration 从您的配置文件中删除一些
'/'
,因为这意味着配置中的换行符
config.toolbar_Custom = [ { name: 'document', items : [ 'Preview' ] }, { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] }, { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','Scayt' ] }, { name: 'insert', items : [ 'Image','Table','HorizontalRule','SpecialChar','PageBreak' ] }, { name: 'links', items : [ 'Link','Unlink' ] }, '/', { name: 'styles', items : [ 'Styles','Format' ] }, { name: 'basicstyles', items : [ 'Bold','Italic','Strike','-','RemoveFormat' ] }, { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote' ] }, { name: 'tools', items : [ 'Maximize' ] } ]; config.toolbar_Custom = [{名称:'document',项目:['Preview']},{名称:'剪贴板',项目:['Cut','Copy','Paste','PasteText','PasteFromWord' ,'-','Undo','Redo']},{name:'editing',items:['Find','Replace','-','SelectAll','-','Scayt']} ,{名称:'insert',项目:['Image','Table','HorizontalRule','SpecialChar','PageBreak']},{名称:'links',项目:['Link','Unlink' ]},'/',{名称:'styles',项目:['Styles','Format']]},{名称:'basicstyles',项目:['Bold','Italic','Strike',' -','RemoveFormat']},{名称:'paragraph',项目:['NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote']},{名称:“ tools”,项目:['Maximize']}];
This is the 2 lines toolbar which I use. 这是我使用的2行工具栏。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.