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.
POPrince Oliver Syncfusion Team November 20, 2018 10:30 AM UTC
Thank you for using Syncfusion products.
We have checked your requirement for custom tool in RTE control with DropDownList. We can render the DropDownList control inside RTE and insert the selected value into editor using “insertHtml” method. Kindly refer to the following code snippet.