iElectric/Products.TinyMCE — Issue #13: @@tinymce-getstyle use a wrong URL
Author: toutpt
Created: 2011-10-26 15:03:41+00:00
State: open

content of TinyMCE is not well displayed.

inspect show a 404 is detected on @@tinymce-getstyle.

-> utility.py line 845 -> 848

if self.content_css and self.content_css.strip() != "":
results['content_css'] = self.content_css
else:
results['content_css'] = self.absolute_url() + """/@@tinymce-getstyle"""

but

(Pdb) self.absolute_url()
'plone/portal_tinymce'

This comes from the way the uitiliy is retrieve (using component.getUtility, so the uitlility do not know anything about the request.

Work around: Go into the controlpanel and use content_css param loading the full url.