V9后台ckeditor编辑器内,编辑视图下默认文字大年夜小似乎是16px,我想改成12或14px,应当在哪里改呢!
打开statics\\js\\ckeditor下的contents.css文件。参加下面内容[ol]body{/* Font */font-size: 12px;}[/ol]复制代码。
字体更改了,但是行距却不好看。
1.下载ckeditor的行距插件包 lineheight
2.解压到ckeditor/plugins目录下
3.修改ckeditor目录下的 config.js文件,在其中添加以下的代码
config.extraPlugins += (config.extraPlugins ? ',lineheight' : 'lineheight'); CKEDITOR.config.toolbar_Full = [ { name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] }, { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] }, { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] }, { name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] }, '/', { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] }, { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] }, { name: 'links', items : [ 'Link','Unlink','Anchor' ] }, { name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ] }, '/', { name: 'styles', items : [ 'Styles','Format','Font','FontSize','lineheight' ] }, { name: 'colors', items : [ 'TextColor','BGColor' ] }, { name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] } ];
4.现在就ok了,行距功能就有了。