From: Benoît Pin Date: Tue, 16 Aug 2011 11:12:23 +0000 (+0200) Subject: On repasse à js. X-Git-Tag: 3.6.1~24 X-Git-Url: https://svn.cri.ensmp.fr/git/ckeditor.git/commitdiff_plain/810ca091401a19bd050adbbdc241073c8b95cb72?ds=sidebyside On repasse à js. --- diff --git a/skins/ckeditor/config.js.py b/skins/ckeditor/config.js.py index 3c00463..9467812 100644 --- a/skins/ckeditor/config.js.py +++ b/skins/ckeditor/config.js.py @@ -1,10 +1,4 @@ -##parameters= -from Products.CMFCore.utils import getToolByName -context.REQUEST.RESPONSE.setHeader('content-type', 'application/javascript; charset=utf-8') -utool = getToolByName(context, 'portal_url') - -print """ -/* +/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -28,6 +22,5 @@ CKEDITOR.editorConfig = function( config ) ]; config.height = '500px'; - config.filebrowserBrowseUrl = '%(portal_url)s'; -};""" % {'portal_url' : utool()} -return printed + config.filebrowserBrowseUrl = CKEDITOR.basePath; +}; \ No newline at end of file