How to get readable template content from DocumentEditor using Javascript - angular

Hi,

We are designing a template using Rich Text Editor, designed document looks like below with required placeholders information.


I need to get an alert message with all information when I click on a button like below

Can you suggest which method or function must be used in order to get the required output? 

appreciate your help, any sample code will help us a lot.

Thanks and regards,

Ramesh



1 Reply

SM Suriya Murugan Syncfusion Team July 23, 2021 10:11 AM UTC

Hi Ramesh, 

Syncfusion Greetings! 

We have checked your requirement.  
1.      Using text API in selection , you will get the text in selected content. 
Code snippet: 

let text=this.container.documentEditor.selection.text; 


2.      To export the selected content as Sfdt, we logged the feature request for this. We will include it in our 2021 volume 2 SP1 release which scheduled on mid of August 2021. 
You can track the status of bug through below feedback link: 

Please up-vote this feature request to make this feature request as our priority. 
 
Can you please check above provided details satisfies your requirement? 

Regards, 
Suriya M. 


Loader.
Up arrow icon