On repasse à js.
authorBenoît Pin <pin@cri.ensmp.fr>
Tue, 16 Aug 2011 11:12:23 +0000 (13:12 +0200)
committerBenoît Pin <pin@cri.ensmp.fr>
Tue, 16 Aug 2011 11:12:23 +0000 (13:12 +0200)
skins/ckeditor/config.js.py

index 3c00463..9467812 100644 (file)
@@ -1,10 +1,4 @@
-##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
+/*\r
 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\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
@@ -28,6 +22,5 @@ CKEDITOR.editorConfig = function( config )
        ];\r
        \r
        config.height = '500px';\r
        ];\r
        \r
        config.height = '500px';\r
-       config.filebrowserBrowseUrl = '%(portal_url)s';\r
-};""" % {'portal_url' : utool()}\r
-return printed\r
+       config.filebrowserBrowseUrl = CKEDITOR.basePath;\r
+};
\ No newline at end of file