We've a requirement to create a custom plugin icon for RTE which pops up an overlay with a select option field, and ok/cancel button. This option field on the overlay retrieves about ~50 key,value from external service url (eg: https://host/products/price.do).
For example: there are 3 fields in select option LOW, MEDIUM, HIGH
When user selects LOW it should show "LOW" in RTE as follows
Inside RTE: Price of this product is LOW
When user clicks on LOW text or the custom icon on RTE when LOW text is selected, it should again pop up the overlay with select option to choose from.
Does anyone implemented such behavior before or aware any supporting links for the similar feature implementation?