[gen] Bugfix: ckeditor

This commit is contained in:
Gaetan Delannay 2015-02-24 22:01:45 +01:00
parent 1be8163c70
commit dfb41b0fae
2 changed files with 6 additions and 5 deletions

View file

@ -1005,10 +1005,11 @@ class String(Field):
def getCkParams(self, obj, language):
'''Gets the base params to set on a rich text field'''
ckAttrs = {'customConfig': '/ui/ckeditor/config.js',
'contentsCss': '/ui/ckeditor/contents.css',
'stylesSet': '/ui/ckeditor/styles.js', 'toolbar': 'Appy',
'format_tags': ';'.join(self.styles),
base = obj.getTool().getSiteUrl()
ckAttrs = {'customConfig': '%s/ui/ckeditor/config.js' % base,
'contentsCss': '%s/ui/ckeditor/contents.css' % base,
'stylesSet': '%s/ui/ckeditor/styles.js' % base,
'toolbar': 'Appy', 'format_tags': ';'.join(self.styles),
'scayt_sLang': self.getCkLanguage(obj, language)}
if self.width: ckAttrs['width'] = self.width
if self.height: ckAttrs['height'] = self.height