Created
April 1, 2024 17:41
-
-
Save bjoerntx/920e33fa795b513d8821d6ec3d145cc5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function insertComment(comment) { | |
return new Promise((resolve, reject) => { | |
TXTextControl.comments.add(comment, (e) => { | |
e.comment.getComment((comment) => { | |
resolve(comment); | |
}); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment