diff --git a/product/ERP5/Document/TextDocument.py b/product/ERP5/Document/TextDocument.py index ea19c10b6e06ead89d390c0ce5c6db42ac6f216d..73d51f1c004df0ddcfa9cb0079ee0c5798f80cf2 100644 --- a/product/ERP5/Document/TextDocument.py +++ b/product/ERP5/Document/TextDocument.py @@ -128,6 +128,13 @@ class TextDocument(Document, TextContent): security.declareProtected( Permissions.ModifyPortalContent, 'edit' ) edit = WorkflowMethod( _edit ) + security.declareProtected(Permissions.ModifyPortalContent, '_setTextContent') + def _setTextContent(self, *args, **kw): + """Call Clear conversion cache when edit text_content + """ + self.clearConversionCache() + self._baseSetTextContent(*args, **kw) + # Default Display security.declareProtected(Permissions.View, 'index_html') def index_html(self, REQUEST, RESPONSE, format=None, **kw):