From 810ca091401a19bd050adbbdc241073c8b95cb72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Tue, 16 Aug 2011 13:12:23 +0200 Subject: [PATCH 1/1] =?utf8?q?On=20repasse=20=C3=A0=20js.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/ckeditor/config.js.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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 -- 2.20.1