Make images from text
The example demonstrates how to build a custom dialog, which creates/edits
an <img> tag, which serves as a placeholder for a mail merge field. Just select
some text in the editor, open the Insert Merge Field dialog, type the desired image
text in the "Field Name" textbox and insert an image via the dialog with the specified
in the textbox text. This will replace the selection in the content area with the
image. The user can directly insert an image via the dialog at cursor position too.
The solution uses the showExternalDialog method which allows to
create ASPX / HTML based custom dialogs. (This method was implemented for backward
compatibility with RadEditor Classic). The method has the following arguments:
showExternalDialog(url, argument, width, height, callbackFunction, callbackArgs,
title, modal, behaviors, showStatusbar, showTitlebar);