<html i18n:domain="plone">

<!-- wysiwyg multiplexing widget, this allows for both Epoz and Kupu to coexist -->

<div metal:define-macro="wysiwygEditorBox">
  <tal:block define="editor python: member.getProperty('wysiwyg_editor','').lower();
        editor python: test(editor=='fck editor', 'editor_fck', editor);
        support python: path('nocall:here/%s_wysiwyg_support|here/%s/wysiwyg_support|here/portal_skins/plone_wysiwyg/wysiwyg_support' % (editor, editor));"
        on-error="string:Kupu not installed correctly: ${error/value}">
 <metal:block metal:use-macro="support/macros/wysiwygEditorBox">
 </metal:block>
 </tal:block>
</div>


<div metal:define-macro="textFormatSelector">
  <tal:block define="editor python: member.getProperty('wysiwyg_editor','').lower().replace(' ', '_');
        editor python: test(editor=='fck editor', 'editor_fck', editor);
        support python: path('nocall:here/%s_wysiwyg_support|here/%s/wysiwyg_support|here/portal_skins/plone_wysiwyg/wysiwyg_support' % (editor, editor));"
        on-error="string:Kupu not installed correctly: ${error/value}">
 <metal:block metal:use-macro="support/macros/textFormatSelector">
 </metal:block>
 </tal:block>
</div>


</html>
