From: Benoît Pin <pin@cri.ensmp.fr> Date: Thu, 28 Nov 2013 09:57:13 +0000 (+0100) Subject: Suppression de la macro textFormatSelector devenue caduque. X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/ac5d6892f5bb2b05aa4ab47dd69260d1a3bd05f7 Suppression de la macro textFormatSelector devenue caduque. --- diff --git a/skins/custom_content/document_edit_template.pt b/skins/custom_content/document_edit_template.pt index f02bd14..0295630 100755 --- a/skins/custom_content/document_edit_template.pt +++ b/skins/custom_content/document_edit_template.pt @@ -27,13 +27,6 @@ </div> </td> </tr> - <tr> - <td colspan="2"> - <div metal:use-macro="here/wysiwyg_support/macros/textFormatSelector"> - Format box, if needed - </div> - </td> - </tr> <!-- <tr> <th nowrap="nowrap" i18n:translate="">External file</th> diff --git a/skins/custom_content/newsitem_edit_template.pt b/skins/custom_content/newsitem_edit_template.pt index 67b3908..ed7c952 100644 --- a/skins/custom_content/newsitem_edit_template.pt +++ b/skins/custom_content/newsitem_edit_template.pt @@ -29,13 +29,6 @@ </div> </td> </tr> - <tr> - <td colspan="2"> - <div metal:use-macro="here/wysiwyg_support/macros/textFormatSelector"> - Format box, if needed - </div> - </td> - </tr> <!-- <tr> <th nowrap="nowrap" i18n:translate="">External file</th> diff --git a/skins/generic/wysiwyg_support.pt b/skins/generic/wysiwyg_support.pt index 1fff09e..ef29cc7 100644 --- a/skins/generic/wysiwyg_support.pt +++ b/skins/generic/wysiwyg_support.pt @@ -33,32 +33,4 @@ </div> </div> - <div metal:define-macro="textFormatSelector" - tal:define="wysiwyg python: here.portal_membership.getAuthenticatedMember().getProperty('wysiwyg_editor')!='None'; - text_format python: getattr(here,'text_format','html')" - tal:omit-tag="" i18n:domain="plinn"> - <input type="hidden" name="text_format" value="html" tal:condition="wysiwyg" /> - - <div tal:condition="not: wysiwyg"> - <label i18n:translate="">Format</label><br/> - <label> - <input type="radio" name="text_format" value="structured-text" - tal:attributes="checked python:test(text_format=='structured-text', 1, None);" /> - <span i18n:translate="" tal:omit-tag="">Structured text</span> - </label><br /> - - <label> - <input type="radio" name="text_format" value="html" - tal:attributes="checked python:test(text_format=='html', 1, None)" /> - <span i18n:translate="" tal:omit-tag="">HTML</span> - </label><br /> - - <label> - <input type="radio" name="text_format" value="plain" - tal:attributes="checked python:test(text_format=='plain', 1, None);" /> - <span i18n:translate="" tal:omit-tag="">Plain text</span> - </label> - </div> - </div> - </html> \ No newline at end of file