TRichViewEdit vs TcxTRichViewEdit and pasted HTML
Posted: Tue Dec 03, 2024 5:25 pm
Hello,
I'm encountering an issue with the TcxTRichViewEdit component in Delphi. On the same form, I have both a TRichViewEdit and a TcxTRichViewEdit, both with default properties and no modifications.
Here's the problem:
I copy HTML content from a web browser using CTRL+C.
When I paste it into the TRichViewEdit using CTRL+V, the content appears correctly with full formatting, closely resembling the original HTML.
However, when I paste the same content into the TcxTRichViewEdit, it displays only plain text without any formatting.
I was expecting the TcxTRichViewEdit to handle pasted HTML content the same way as TRichViewEdit, preserving all formatting.
Could you please explain why this discrepancy occurs and how I can get the TcxTRichViewEdit to display the pasted HTML content with full formatting?
I've attached the full source code for your reference.
Tested on Delphi 11 and 12 with TRichView version 22.4 using VCL (Windows 10/11 64bits).
I'm encountering an issue with the TcxTRichViewEdit component in Delphi. On the same form, I have both a TRichViewEdit and a TcxTRichViewEdit, both with default properties and no modifications.
Here's the problem:
I copy HTML content from a web browser using CTRL+C.
When I paste it into the TRichViewEdit using CTRL+V, the content appears correctly with full formatting, closely resembling the original HTML.
However, when I paste the same content into the TcxTRichViewEdit, it displays only plain text without any formatting.
I was expecting the TcxTRichViewEdit to handle pasted HTML content the same way as TRichViewEdit, preserving all formatting.
Could you please explain why this discrepancy occurs and how I can get the TcxTRichViewEdit to display the pasted HTML content with full formatting?
I've attached the full source code for your reference.
Tested on Delphi 11 and 12 with TRichView version 22.4 using VCL (Windows 10/11 64bits).