/** * @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.font_names = []; if ('undefined'!= typeof thinEditor && true === thinEditor) { config.toolbar = [ [ 'Source', 'NewPage', 'Preview', 'Templates', 'Save' ], // Defines toolbar group with name (used to create voice label) and items in 3 subgroups. [ 'Undo', 'Redo' , 'Cut', 'Copy', 'PasteText','-', 'Paste', 'PasteFromWord', ], // Defines toolbar group without name. ['Image', 'HorizontalRule'], ['Maximize'], '/', [ 'Bold', 'Italic', 'Underline', 'Strike', '-' ,'Subscript', 'Superscript', 'RemoveFormat' ], ['Format'], ['FontSize'], ['TextColor', 'BGColor'], ['Link', 'Unlink', '-', 'Anchor'], ['NumberedList', 'BulletedList', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ] } config.filebrowserImageUploadUrl = window.location.href.replace(/\/\?r=([^\/]+)\/.*/, '/?r=$1/ckUpload'); config.image_previewText = CKEDITOR.tools.repeat(' ', 1); config.disallowedContent = 'img{width,height}'; };