How to automatically post the inserted comment?

Hi! I've inserted a comment but it still needs to be posted by clicking the button in below the comment input field. I'm trying to avoid the sidebar opening since we need to insert comments in the background. How do I "post" it programmatically without using the post button on that sidebar?

Here's the block of code that I'm using:

document.getElementById("insertComment").addEventListener("click", function(e) {
documenteditor.documentEditor.editor.select("0:0:5", "0:0:25");
documenteditor.documentEditor.editor.insertComment("Comment Inserted");
});

1 Reply

KB Kurthis Banu Abdul Majeeth Syncfusion Team June 3, 2021 05:32 AM UTC

Hi Charlemagne, 


Currently, we don’t have support for your requirement.  We have already logged feature request for your requirement. We will update the status of the feedback link once it is taken for implementation. We will update you once feature implemented. You can also track the feature status from below link.        

     
Please up-vote this feature request to make this feature request as our priority. At the planning stage for every release cycle, we will review all open features and prioritize them based on the user demands. It will be available in any of our upcoming releases.      



Regards, 
Kurthis Banu A. 


Loader.
Up arrow icon