X-Git-Url: https://scm.cri.mines-paristech.fr/git/ckeditor.git/blobdiff_plain/80e7530fc08c30552d8b066f7943533aff474f09..162c461e504567a6725da2e56932d942a1719bdc:/skins/ckeditor/config.js.py diff --git a/skins/ckeditor/config.js.py b/skins/ckeditor/config.js.py index 1ce2adb..3c00463 100644 --- a/skins/ckeditor/config.js.py +++ b/skins/ckeditor/config.js.py @@ -1,4 +1,10 @@ -/* +##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 */ @@ -22,4 +28,6 @@ CKEDITOR.editorConfig = function( config ) ]; config.height = '500px'; -}; + config.filebrowserBrowseUrl = '%(portal_url)s'; +};""" % {'portal_url' : utool()} +return printed