I need help developing a feature in an HTML file that I'm opening with Webkit. The goal is to create an app where users can select text and mark it as a note by clicking a 'Note Text' button.
After pressing the button, I want a note image to appear on the right side of the selected text. However, I'm struggling to determine the position of the selected text and how to add a floating image (such as a div element) on the right side.
If anyone has any sample code fragments for adding annotations or notes using JavaScript, I would greatly appreciate it!