Browse files

Made (more) compatible with chameleon by using a simpler way to get t…

…he wysiwyg editor.

svn path=/plone.app.form/trunk/; revision=49800
  • Loading branch information...
1 parent 74b235a commit 4685c3f454f08ba015b862b31e4d88e507d8991e @mauritsvanrees mauritsvanrees committed May 19, 2011
Showing with 6 additions and 1 deletion.
  1. +4 −0 CHANGES.txt
  2. +2 −1 plone/app/form/widgets/wysiwygwidget.pt
View
4 CHANGES.txt
@@ -5,6 +5,10 @@ Changelog
2.0.3 - Unreleased
------------------
+- Made (more) compatible with chameleon by using a simpler way to get
+ the wysiwyg editor.
+ [maurits]
+
- Add MANIFEST.in.
[WouterVH]
View
3 plone/app/form/widgets/wysiwygwidget.pt
@@ -18,7 +18,8 @@
member_editor python: not isAnon and member.getProperty('wysiwyg_editor').lower() or '';
default_editor python: context.portal_properties.site_properties.getProperty('default_editor', '').lower();
editor python: member_editor=='' and default_editor or member_editor;
- support python: path('nocall:here/%s_wysiwyg_support|here/%s/wysiwyg_support|here/portal_skins/plone_wysiwyg/wysiwyg_support' % (editor, editor));">
+ support_path string:nocall:here/${editor}_wysiwyg_support|here/${editor}/wysiwyg_support|here/portal_skins/plone_wysiwyg/wysiwyg_support;
+ support python: path(support_path);">
<div metal:use-macro="support/macros/wysiwygEditorBox">
The WYSIWYG code
</div>

0 comments on commit 4685c3f

Please sign in to comment.