简体   繁体   English

如何使ckEditor菜单按钮显示在两行而不是四行?

[英]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: 您应该做两件事:

  1. make your textarea wider 使您的文本区域更宽

  2. 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','Horizo​​ntalRule','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.

相关问题 ckeditor:如何连接菜单按钮? - ckeditor: how to wire up menu buttons? 我怎样才能使它显示菜单上的所有内容而不必搜索? - How can I make this to show everything on the menu instead of having to search? 我有四个菜单按钮,但是通过jQuery只有一个弹出窗口,我可以概括一下还是需要四个不同的窗口? - I have four menu buttons, but only one pop-up window through jQuery, can I generalize or do I need four different windows? 如何让我的响应式汉堡菜单显示并用 JS 隐藏 - How do I make my responsive hamburger menu show up and hide with JS 我如何使用纯 JS 使下拉菜单顺利显示? - How i make the drop menu Show up smoothly with pure JS? 如何使用一个“单击事件”(而不是四个)来运行此js应用程序? - How can I make this js app run using one “on click event” instead of four? 打印时如何隐藏按钮菜单? - How can I hide my menu of buttons while printing? 如何使用两个按钮在ul上下导航? - How can I navigation up and down a ul using two buttons? 如何让我的密码提示只在我打开我的网站时出现一次,而不是每次我重新加载页面或重新访问它时出现 - How do I make my password prompt only show up once when I open up my website instead of every time I reload the page or revisit it 如何在HTML页面上创建按钮显示不同的信息 - How can i make buttons on a HTML page show different information
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM