projects
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
On va quand même mettre config.js en python, car le config.basePath de ckeditor est...
[ckeditor.git]
/
skins
/
ckeditor
/
config.js.py
diff --git
a/skins/ckeditor/config.js.py
b/skins/ckeditor/config.js.py
index
1ce2adb
..
3c00463
100644
(file)
--- a/
skins/ckeditor/config.js.py
+++ b/
skins/ckeditor/config.js.py
@@
-1,4
+1,10
@@
-/*
\r
+##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
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
@@
-22,4
+28,6
@@
CKEDITOR.editorConfig = function( config )
];
\r
\r
config.height = '500px';
\r
];
\r
\r
config.height = '500px';
\r
-};
\r
+ config.filebrowserBrowseUrl = '%(portal_url)s';
\r
+};""" % {'portal_url' : utool()}
\r
+return printed
\r