mendixlabs / rich-text

MOVED to:
https://github.com/mendix/widgets-resources/tree/master/packages-web/rich-text
Apache License 2.0
2 stars 8 forks source link

Edit HTML code #22

Open keilt opened 6 years ago

keilt commented 6 years ago

Hi,

we tried to use the widget to edit the HTML content of an email. We set sanitize to no, but it seems that the widget is still removing a lot of HTML tags. Is that the expected behavior?

Thank you, Tobias

Stanley-Okwii commented 6 years ago

Dear Tobias,

Thanks for reporting this issue. We will look into it and get back to you as soon as possible.

Cheers, Stanley

Stanley-Okwii commented 6 years ago

Hello Tobias,

We would like you to provide some detailed information for example screenshots of the issue you are facing enable us give you conclusive feedback.

Thanks, Stanley

kesslera commented 6 years ago

Hi Stanley,

I am a colleague of Tobias. Attached you will find a demo project, where you can see the issue. We've got an email template with some default html body and the user should be able to edit the html body before sending the email. The problem is, that the rich text editor will add unnecessary < p > - elements into the html body and arround existing html tags, which corrupts the existing html body.

Reproduction Steps:

Thanks, Alexander

demo project RichTextHTMLIssue.zip

Stanley-Okwii commented 6 years ago

Hi @kesslera and @keilt,

Thank you for providing detailed steps to reproduce the issue. Support for html "table" tags .ie <table>, <td>, <tr> is not included in the current version of rich text widget. We shall add it to the backlog for a future release and let you know once it's included.

kesslera commented 6 years ago

alright, thank you Stanley for the update