Hi.
I need a TextAreaWidget which edits and stores text as-is. At the moment characters like the non-breaking space (u'\u00a0') will be converted to a normal space (u' ') which I want to avoid. It seems that the conversion is happening directly in the browser. For example: I open LibreOffice Writer, write a simple sentence with non-breaking spaces between the words, copy'n'paste it into the TextArea. Now when I copy'n'paste it back to Writer the non-breaking spaces are gone and replaces by normal spaces. So there must be some functionality on the browser's side which converts the text in some way. Of course the non-breaking spaces were also not stored in the content. But for some reason the at_validatite_field-Call sends the original text instead of the modified with normal spaces.
Can this conversion be deactivated?
This is the part of the code:
TextField('expected',
widget = TextAreaWidget(
label = """Expected output""",
rows = 40,
cols = 40,
allow_file_upload = True,
default_output_type = "text/html",
),
),
I am using Plone in version 4.3 because this is an old project which has to be modified.