【发布时间】:2014-04-24 12:45:18
【问题描述】:
如何自定义 CKEditor 的 h1、h2、h3、标签 fprmat 的外观,以便我可以使它们与我的本地 CSS 样式 h1、h2、h3 等相匹配。我使用的 CSS 文件是 boostrap .css 下面是ckeditor的config.js
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.LinkUpload = false;
config.LinkBrowser = false;
config.skin = 'kama';
config.Format = 'p;h1;h2;h3;h4;h5;h6;pre;address;div' ;
config.FontName = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
config.FontSize = 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ;
config.toolbar_Testimonial = [
['Bold','Italic','Underline','RemoveFormat']
];
config.toolbar_KarlBell = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor']
] ;
config.toolbar_KarlBell = [
['Format','Bold','Italic','Underline','BulletedList','NumberedList','Link']
];
};
【问题讨论】:
标签: javascript ckeditor fckeditor