RichTextEditor and Mail Merge

Hi Syncfusion Teams !

I'm using RichTextEditor tu create email template.

I'want insert field for mail merge at the cursor position like the code snipet on the DocumentEditor :

this.container.documentEditor.editor.insertField('MERGEFIELD '+text+' \\* MERGEFORMAT', '{{'+text+'}}');   
First parameter refers field code and second parameter refers display text. 

And do the merge on the server side.

Is this possible on the richTextEditor ? Do you have another solution ?

Thanks a lot for help !
++



1 Reply 1 reply marked as answer

IS Indrajith Srinivasan Syncfusion Team July 22, 2020 12:56 PM UTC

Hi Bellach, 
 
Greetings from Syncfusion support, 
 
We have validated your reported query. Yes, we have a similar option of inserting the content at cursor position inside the Rich Text Editor using the executeCommand insertHtml. We have also prepared a sample that tries to meet your requirements. 
 
 
 
Can you please check the above sample and let us know if it meets your requirements ? 
 
Regards, 
Indrajith 


Marked as answer
Loader.
Up arrow icon