<html i18n:domain="plone"> <div metal:define-macro="wysiwygEditorBox"> <tal:block tal:define="wysiwyg python: here.portal_membership.getAuthenticatedMember().getProperty('wysiwyg_editor')=='Epoz';"> <tal:block tal:condition="wysiwyg" tal:define="ztu modules/ZTUtils; pss modules/Products/PythonScripts/standard; text_format python: getattr(here,'text_format','html'); is_stx python:text_format=='structured-text'; is_ptx python:text_format=='plain'; url3 request/URL3|nothing; pageurl python: test(here.portal_factory.isTemporary(here), url3, here.absolute_url()); getProperty python: here.stylesheet_properties.getProperty; current_skin python: ztu.make_query(skin=request.get(here.portal_skins.getRequestVarname(), ''));" tal:replace="structure python: here.Epoz( inputname, data = (is_stx and pss.structured_text(inputvalue)) or (is_ptx and pss.newline_to_br(inputvalue)) or inputvalue, toolbox = pageurl + '/epoz_toolbox', lang = here.portal_properties.site_properties.default_language, style = 'width: %s; height: %s; margin-top: 2px; border: %s;' % (path('width|string:99%'), path('height|string:450px'), getProperty('preBorder','1px solid #8cacbb'),), button = 'background-color: %s; border: 1px solid %s; cursor: pointer; margin-right: 1px; margin-bottom: 1px;' % ( getProperty('contentTabBackground','#CDE2A7'), getProperty('contentTabFontColor','#578308'),), path = here.portal_url() + '/', css = here.portal_url()+'/plone.css?'+pss.url_quote(current_skin), customcss = here.portal_url()+'/ploneCustom.css?'+pss.url_quote(current_skin), charset = here.portal_properties.site_properties.default_charset, pageurl = pageurl)"> </tal:block> <tal:block condition="not: wysiwyg"> <textarea cols="80" rows="25" tabindex="" name="description" tal:content="inputvalue" tal:attributes="name inputname; id inputname; tabindex tabindex|nothing; rows rows|default; cols cols|default;"></textarea> </tal:block> </tal:block> </div> <div metal:define-macro="textFormatSelector"> <tal:block tal:define="wysiwyg python: here.portal_membership.getAuthenticatedMember().getProperty('wysiwyg_editor')=='Epoz'"> <tal:block condition="wysiwyg"> <input type="hidden" name="text_format" value="html" /> </tal:block> <tal:block condition="not: wysiwyg"> <div class="field" tal:define="tabindex tabindex/next; text_format python:request.get('text_format', getattr(here,'text_format','structured-text'))"> <label for="text_format" i18n:translate="label_format">Format</label> <div class="formHelp" i18n:translate="help_format_wysiwyg"> If you are unsure of which format to use, just select Plain Text and type the document as you usually do. </div> <input class="noborder" type="radio" name="text_format" value="structured-text" tabindex="" id="cb_structuredtext" tal:attributes="checked python:test(text_format=='structured-text', 1, None); tabindex tabindex;" /> <label for="cb_structuredtext" i18n:translate="structured_text">Structured Text</label> <br /> <input class="noborder" type="radio" name="text_format" value="html" tabindex="" id="cb_html" tal:attributes="checked python:test(text_format=='html', 1, None); tabindex tabindex;" /> <label for="cb_html" i18n:translate="html">HTML</label> <br /> <input class="noborder" type="radio" name="text_format" value="plain" tabindex="" id="cb_plain" tal:attributes="checked python:test(text_format=='plain', 1, None); tabindex tabindex;" /> <label for="cb_plain" i18n:translate="plain_text">Plain Text</label> </div> </tal:block> </tal:block> </div> </html>