Preview: config.js
Size: 2.71 KB
/home/jambtst2015/public_html/editor/ckeditor/config.js
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.addExternal('fmath_formula', 'plugins/fmath_formula/', 'plugin.js');
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.contentsCss = 'contents.css';
config.filebrowserUploadUrl = 'http://kcueonline.com/admin/ckeditor/ckupload.php';
//the next line add the new font to the combobox in 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' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
//{ name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }
];
/*config.toolbar_Basic =
[
['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About']
];*/
config.toolbar_Basic =
[
{ name: 'document', items : [ 'Source' ] },
{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] }
];
// Declare the additional plugin
//config.extraPlugins = 'fmath_formula';
// Add the button to toolbar
config.toolbar_Math = [
['Templates', 'Styles','Format','Font','FontSize','TextColor','BGColor','Maximize','Image'],
['Source'],
['Bold','Italic','Underline','Strike','-','Subscript','Superscript','-','fmath_formula'],
['Table','HorizontalRule'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote']
]
};
Directory Contents
Dirs: 9 × Files: 17