Is it possible to retain the inserted style tags and their content within the RTE?

I attempted to utilize the options provided by the 'PasteCleanupSettingsModel', but unfortunately, none of them seemed to resolve the issue.

Version:  "@syncfusion/ej2-angular-richtexteditor": "^24.2.9"


2 Replies

AF Attila Fuit April 25, 2024 02:44 PM UTC

I think it is only possible with this parameter:

[enableHtmlSanitizer]="false"

And it's important to ensure that the style tag remains within the body.



VJ Vinitha Jeyakumar Syncfusion Team April 26, 2024 07:12 AM UTC

Hi Attila Fuit,


Can you please share some more details about your requirement for our better understanding? are you trying to retain the styles of the pasted content into the RichTextEditor or if your requirements is different, please share exact details.

Also, share the content which you tried to insert or pasted into the Editor for better assistance.

Regards,
Vinitha

Loader.
Up arrow icon