I am finding it difficult to get a custom tool working with the rich text editor control. The purpose of the custom tool is to provide a dropdown list of insertable fields into the content of RTE. For example, one option in the dropdown would be 'First Name', and as a result of selecting this item, the value '#Firstname#' would be inserted into the content.
So far I have managed to get a control on to the toolbar:
But I am yet to get it to do anything useful. Ideally it would display a list of fields, a bit like the Paragraph tool except, it would display selectable fields rather than paragraph formatting types.
Any help you can provide would be greatly appreciated.