sheercms
Version:
Sheer Cliff CMS is a simple and powerful content management system (CMS) for Node JS.
45 lines (37 loc) • 2.41 kB
JavaScript
/**
* @license Copyright (c) 2003-2013, 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.toolbar = [
{ name: 'document', groups: ['mode', 'document', 'doctools'], items: ['Source', 'HtmlEditor'] },
{ name: 'clipboard', groups: ['clipboard', 'undo'], items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
{ name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
{ name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'], items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
'/',
{ name: 'editing', groups: ['find', 'selection', 'spellchecker'], items: ['Find', 'SelectAll', 'Scayt'] },
{ name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
{ name: 'insert', items: ['Image', 'Table', 'SpecialChar'] },
{ name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize'] },
{ name: 'colors', items: ['TextColor', 'BGColor'] },
{ name: 'tools', items: ['Maximize', 'ShowBlocks'] },
];
config.extraPlugins = 'htmleditor';
config.height = 300;
config.tabSpaces = 4;
config.allowedContent = true;
config.autoGrow_onStartup = true;
config.autoGrow_maxHeight = 600;
config.enterMode = CKEDITOR.ENTER_P; //.ENTER_BR, .ENTER_DIV
//config.forcePasteAsPlainText = true;
// href="<a href=\"javascript:void(location.href=\'mailto:\'+String.fromCharCode(116,101,115,116,101,114,64,99,107,101,100,105,116,111,114,46,99,111,109)+\'?subject=subject&body=body\')\">e-mail</a>"
config.emailProtection = 'encode';
//config.contentsCss = ['/css/mysitestyles.css', '/css/anotherfile.css'];
config.filebrowserBrowseUrl = '/cms/static/editor/link-manager.html?editor=ckeditor';
config.filebrowserImageBrowseUrl = '/cms/static/editor/image-manager.html?editor=ckeditor';
config.filebrowserWindowWidth = '800';
config.filebrowserWindowHeight = '700';
};