Inserting existing RTF file

I need to insert existing rtf file in a Syncfusion RichTextEditor at the cursor selection point...

1 Reply 1 reply marked as answer

KG Kalaivannan Ganesan Syncfusion Team April 20, 2021 08:43 AM UTC

Hi Mosharraf,

Thanks for contacting syncfusion support.

Currently SfRichTextBoxAdv control doesn’t have API to insert formatted (RTF) text.

 As a workaround, it can be achieved by performing copy and paste operations programatically in SfRichTextBoxAdv and follow the below steps

Step 1: Get the RTF string from RTF file
Step 2: Set the RTF string in clipboard. 
Step 3: Invoke paste command. 

And also we have created a sample to demonstrate a same which can be downloaded from the following location.

https://www.syncfusion.com/downloads/support/forum/164648/ze/RTE_InsertRTF-458210174  

Please let us know if you have nay other questions.

Regards,
Kalaivannan
 


Marked as answer
Loader.
Up arrow icon