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
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
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.