Hi, i’ve noticed a strange behavior in tiny:
one of our users converted a pdf in simple text file and then copy/pasted the text into tiny. He made some changes and saved it.
The view renders the text correctly, but when i try to edit that page, the widget breaks with this error:
*** ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
The problem is that converted text has a control character (\x0c) that is invisible in the editor (unless you open it as source) and makes the object in a broken state because we can’t edit it from the interface.
This problem happens also if i enable “paste as text” behavior in tiny. I thought that this feature was similar to the old beloved “paste as simple text” in previous tiny versions, but it seems not.
How can i avoid these problems?
Is there a way to safely customize tiny/mockup and perform a stricter validation, or it’s better clean the value in TextareaWidget before set the value?