首页 > 其他 > 详细

ckeditor4.x toolbar 工具栏配置

时间:2014-07-28 16:59:44      阅读:859      评论:0      收藏:0      [点我收藏+]
  1. 首页你要下载full版本的 而不是stander版本

  2. 你可以在ckeditor\samples\plugins\toolbar 目录下方找到官方说明

  3. 官方说明有2种方式1toolbar 2 toolbargroup


以下是我google翻译的

此示例演示页面编辑器加载满工具栏(所有注册按钮),如果当前编辑器的配置修改默认设置,也与编辑修改工具栏。 

由于CKEditor的4有两种方式来配置的工具栏按钮。 

由config.toolbar 

你可以明确地定义哪些按钮显示在哪些群体,哪些秩序。这是更精确的设置,但不灵活。如果新添加的插件添加自己的按钮,您就必须手动添加到您的config.toolbar设置为好。 

要添加自定义工具栏设置一个CKEditor的实例,插入到您的代码如下JavaScript调用:

CKEDITOR.replace( ‘textarea_id‘, {	toolbar: [
		{ name: ‘document‘, items: [ ‘Source‘, ‘-‘, ‘NewPage‘, ‘Preview‘, ‘-‘, ‘Templates‘ ] },	// Defines toolbar group with name (used to create voice label) and items in 3 subgroups.
		[ ‘Cut‘, ‘Copy‘, ‘Paste‘, ‘PasteText‘, ‘PasteFromWord‘, ‘-‘, ‘Undo‘, ‘Redo‘ ],			// Defines toolbar group without name.
		‘/‘,																					// Line break - next group will be placed in new line.
		{ name: ‘basicstyles‘, items: [ ‘Bold‘, ‘Italic‘ ] }
	]
});


ckeditor4.x toolbar 工具栏配置,布布扣,bubuko.com

ckeditor4.x toolbar 工具栏配置

原文:http://my.oschina.net/u/554046/blog/295417

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!