Combination of Rich Text Modul with dynamic label widget in document template and PDF Export does not work.

Dear Community,    i have the requirement from my customer / users side to have an questionnaire with an input element allowing copying text and images from the clipboard. At the end there should be a report generated in PDF.    First of all it looked very easy and good by using the combination of the rich text marketplace module of mendix  in combination with a dynamic label widget of the document template and sending it to an pdf creator.     When i did it the first time it worked very good. I inserted a text and and image from the clipboard to the rich text editor and it was present at the PDF export based on the document template.   When i clicked the second time at the generate report button i got an error message that i should contact the administrator.    Long time and a lot of trials later i figured out the following:   At the rich text editor i have to deactivate sanitize content otherwise the picture is gone. I show in parallel the string variable with a text area element and even if i configure on change or on press key the content is not saved or at least displayed in the text area. Only when i change to another tab saving happens but sometimes with or without the picture XHTML code.  Sometimes the XHTML code is enlarged with “&nbsp” even when i didn´t do a backspace and then it runs into the failure with the message “contact your administrator”. When i remove this in the string variable it works again.   Has someone had similar requirements and / or is facing the same behaviour of the rich text module and the dynamic label widget? Every help would be great because im running out of ideas.    In my opinion one problem is the saving issue that the content in the rich text editor and the string variable is not the same and the second issue is that the rich text editor generates sometimes the entry &nbsp which can not be handled by the dynamic label.  
0 answers