How to insertText containing \n or how to insert new paragraph

Hello,

My goal is to be able to add a text that contains \n inside the document at the cursor position.

Apparently insertText ignore them.

Is there a way to do that using the API ?

Thank you,
Tuan


9 Replies

SM Suriya Murugan Syncfusion Team September 3, 2021 06:24 AM UTC

Hi Tuan, 

We need some clarification regarding your requirement. Can you please confirm whether you want to insert new paragraph using insert Text API and “\n” gets ignored? 

Please share detail about your requirement. That will be helpful for us to proceed further and provide you solution at earliest. 

Regards, 
Suriya M. 




TA Tuan Ardouin September 3, 2021 06:39 AM UTC

Hello Suriya,


My final goal is to be able to insert a text containing a carriage return ( /n ) at the cursor position using the JS /Vue API.


Another possibility would be to add a new paragraph using the API.


If that's not clear please tell me.


Thank you,

Tuan




KB Kurthis Banu Abdul Majeeth Syncfusion Team September 6, 2021 12:15 PM UTC

Hi Tuan,  

We are checking your requirement and will update details by September 7,2021.   

Regards,  
Kurthis Banu A.  



SM Suriya Murugan Syncfusion Team September 8, 2021 03:39 AM UTC

Hi Tuan,   

Apologies! 

We will update details by September 8,2021.    

Regards,   
Suriya M. 



SM Suriya Murugan Syncfusion Team September 8, 2021 11:55 AM UTC

Hi Tuan, 

We logged the feature request for your requirement. We will include it in our 2021 volume 3 SP1 release which scheduled on mid of November 2021. 

You can track the status of feature through below feedback link: 


Regards, 
Suriya M. 



KB Kurthis Banu Abdul Majeeth Syncfusion Team November 12, 2021 07:20 PM UTC

Hi Tuan,  

Sorry for the inconvenience caused.   

We are not possible to include this feature in our latest patch release. Due other high priority features we were not able to include the enhancement. But, based on your interest in our product and your efforts to improve it. We will add priority to this feature request and consider and We include this feature in our 2021 Volume 4 release which will be rolled out at the end of December 2021.We would appreciate your valuable patience until then.      

Disclaimer: The date for the feature implementation is tentative and not a commitment on our parts.   

You can track the status of feature through below feedback link:  

Regards, 
Kurthis Banu A. 



SM Suriya Murugan Syncfusion Team December 21, 2021 03:37 AM UTC

Hi Tuan,   

Sorry for the inconvenience caused.    

We are not possible to include this feature in our latest patch release. Due other high priority features we were not able to include the enhancement. We will add priority to this feature request and consider and We include this feature in our 2021 Volume 4 SP release which is tentatively scheduled on mid of February 2022. 

Disclaimer: The date for the feature implementation is tentative and not a commitment on our parts.    

You can track the status of feature through below feedback link:   

Regards,  
Suriya M. 



SM Suriya Murugan Syncfusion Team January 31, 2022 01:31 PM UTC

Hi Tuan, 

Due other high priority features we were not able to include the enhancement. We will add priority to this feature request and consider and We include this feature in our EJ2- patch release which is scheduled for February 16,2022.   
Disclaimer: The date for the feature implementation is tentative and not a commitment on our parts.     
  
You can track the status of feature through below feedback link:    


Regards, 
Suriya M. 



SM Suriya Murugan Syncfusion Team February 16, 2022 04:59 PM UTC

Hi Tuan,


We are glad to announce that our patch release (v19.4.52) is rolled out successfully and In this release, we have added the requested API for inserting new paragraph when passing '\r\n', '\n' to insertText API.


Please upgrade to the latest version packages to resolve this issue.     

https://www.npmjs.com/package/@syncfusion/ej2-documenteditor 

https://www.npmjs.com/package/@syncfusion/ej2-vue-documenteditor  


API details:

container.documentEditor.editor.insertText('\r\n'); 

or

container.documentEditor.editor.insertText('\n'); 

 


Please let us know if you need any further assistance.


Regards,

Suriya M.


Loader.
Up arrow icon