/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { config.pasteFromWordPromptCleanup = true; config.bodyClass = 'ck_body'; config.toolbar = 'Default'; config.extraPlugins = 'onchange'; // ck finder config.filebrowserBrowseUrl = CKEDITOR.basePath + 'ckfinder/ckfinder.html'; config.filebrowserImageBrowseUrl = CKEDITOR.basePath + 'ckfinder/ckfinder.html?type=Images'; config.filebrowserFlashBrowseUrl = CKEDITOR.basePath + 'ckfinder/ckfinder.html?type=Flash'; config.filebrowserUploadUrl = CKEDITOR.basePath + 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; config.filebrowserImageUploadUrl = CKEDITOR.basePath + 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images'; config.filebrowserFlashUploadUrl = CKEDITOR.basePath + 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'; config.colorButton_colors = '000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,' + 'B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,' + 'F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,' + 'FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,' + 'FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF'; config.fontSize_sizes = '8/8px;9/9px;10/10px;11/11px;12/12px;13/13px;14/14px;15/15px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;32/32px;36/36px;42/42px;48/48px;54/54px;72/72px'; config.font_names = 'Arial/Arial, Helvetica, sans-serif;' + 'Comic Sans MS/Comic Sans MS, cursive;' + 'Courier New/Courier New, Courier, monospace;' + 'Georgia/Georgia, serif;' + 'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' + 'Tahoma/Tahoma, Geneva, sans-serif;' + 'Times New Roman/Times New Roman, Times, serif;' + 'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' + 'Verdana/Verdana, Geneva, sans-serif'; config.toolbar_Default = [ { 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','-','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','Youtube','Table','HorizontalRule','Smiley','SpecialChar','PageBreak' ] }, '/', { name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] }, { name: 'colors', items : [ 'TextColor','BGColor' ] }, { name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] } ]; config.toolbar_Basic = [ { name: 'baskctoolbar', items : [ 'Source','-','Bold','Italic','-','NumberedList','BulletedList','-','Link','Unlink','Anchor','Youtube' ] } ]; config.toolbar_Smarty = [ { name: 'document', items : [ 'Source','-','Bold','Italic','Underline' ] }, { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] }, { name: 'links', items : [ 'Link','Unlink','Anchor','-','Image','','TextColor','BGColor' ] }, { name: 'styles', items : [ 'Format','Font','FontSize' ] } ]; config.toolbar_Flash = [ { name: 'document', items : [ 'Source','-','Bold','Italic','Underline' ] }, { name: 'justify', items : [ 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] }, { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Link','Unlink','Image','TextColor' ] }, { name: 'styles', items : [ 'Format','Font','FontSize' ] } ]; (function () { /* * Load Youtube plugin */ var jsPath = CKEDITOR.basePath.substr(0, CKEDITOR.basePath.indexOf("ckeditor/") - 1); config.extraPlugins += (config.extraPlugins ? ',' : '') + 'youtube'; CKEDITOR.plugins.addExternal('youtube', jsPath + '/ckeditor-youtube/', 'plugin.js'); config.youtube_width = '640'; config.youtube_height = '360'; config.youtube_responsive = true; config.youtube_related = false; config.youtube_older = false; })(); }; CKEDITOR.stylesSet = new CKEDITOR.resourceManager( '', 'stylesSet' ); CKEDITOR.stylesSet.add( 'default', [ /* Block Styles */ // These styles are already available in the "Format" combo, so they are // not needed here by default. You may enable them to avoid placing the // "Format" combo in the toolbar, maintaining the same features. { name : 'Block Header' , element : 'p', styles : { 'font-family' : 'Arial', 'font-size' : '25px', 'color' : '##091653' } }, { name : 'Intro Text' , element : 'p', styles : { 'font-family' : 'Georgia', 'font-size' : '16px', 'line-height' : '25px' } }, /* Inline Styles */ // These are core styles available as toolbar buttons. You may opt enabling // some of them in the Styles combo, removing them from the toolbar. /* Object Styles */ { name : 'Image on Left', element : 'img', attributes : { 'style' : 'padding: 5px; margin-right: 5px', 'border' : '2', 'align' : 'left' } }, { name : 'Image on Right', element : 'img', attributes : { 'style' : 'padding: 5px; margin-left: 5px', 'border' : '2', 'align' : 'right' } }, { name : 'Orange Button', element : 'a', attributes : { 'class' : 'btn' } }, { name : 'Light Green Button', element : 'a', attributes : { 'class' : 'btn btn-sec' } }, { name : 'Borderless Table', element : 'table', styles: { 'border-style': 'hidden', 'background-color' : '#E6E6FA' } }, { name : 'Square Bulleted List', element : 'ul', styles : { 'list-style-type' : 'square' } } ]);