How do I create my own button and have a selected text be captured when button is clicked

Here is the use case:

  1. We wanted to add a insert button (which we can), but when the button is clicked, we wanted to capture the selected text in the iframe document and pass it to the button.
  2. We wanted to send this selected text outside collabora wsd and get the response merged with the document (similar to what you have for insert annotation)
    Any help is appreciated

Hii @muruguru

did your query get solved ? if yes can you please a notes it will be very helpful for our community users when they face this same issue :slight_smile:

Thanks
Darshan