+##parameters=\r
+from Products.CMFCore.utils import getToolByName\r
+context.REQUEST.RESPONSE.setHeader('content-type', 'application/javascript; charset=utf-8')\r
+utool = getToolByName(context, 'portal_url')\r
+\r
+print """\r
+/*\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+For licensing, see LICENSE.html or http://ckeditor.com/license\r
+*/\r
+\r
+CKEDITOR.editorConfig = function( config )\r
+{\r
+ // Define changes to default configuration here. For example:\r
+ // config.language = 'fr';\r
+ // config.uiColor = '#AADC6E';\r
+ config.toolbar = [\r
+ { name: 'styles', items : [ 'Styles', 'Format', 'Font', 'FontSize' ] },\r
+ { name: 'colors', items : [ 'TextColor', 'BGColor' ] },\r
+ { name: 'document', items : [ 'Maximize', 'ShowBlocks', 'Source'] },\r
+ { name: 'editing', items : [ 'Find','Replace', '-', 'SelectAll'] },\r
+ { name: 'clipboard', items : [ 'PasteFromWord', '-', 'Undo', 'Redo' ] },\r
+ '/',\r
+ { name: 'basicstyles', items : [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },\r
+ { name: 'paragraph', items : [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },\r
+ { name: 'links', items : [ 'Link', 'Unlink', 'Anchor' ] },\r
+ { name: 'insert', items : [ 'Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'] },\r
+ ];\r
+ \r
+ config.height = '500px';\r
+ config.filebrowserBrowseUrl = '%(portal_url)s';\r
+};""" % {'portal_url' : utool()}\r
+return printed\r