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).
TRichViewEdit vs TcxTRichViewEdit and pasted HTML
TRichViewEdit vs TcxTRichViewEdit and pasted HTML
- Attachments
-
- PasteBug.zip
- (1.85 KiB) Downloaded 158 times
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: TRichViewEdit vs TcxTRichViewEdit and pasted HTML
Include rvddHTML in cxTRichViewEdit1.Properties.AcceptPasteFormats
(this option is included by default in TRichViewEdit, but not in TcxTRichViewEdit1)
(this option is included by default in TRichViewEdit, but not in TcxTRichViewEdit1)