The DevExpress ASP.NET MVC HTML Editor (HtmlEditor) allows end-users to add placeholders to editor content. The placeholders can then be replaced with the required values.
The collection of placeholders available for end-users is accessed by the Placeholders property. End-users can type a placeholder in the text or use the Insert Placeholder dialog, which can be invoked using the Insert Placeholder toolbar button (ToolbarInsertPlaceholderDialogButton). The Insert Placeholder dialog allows you to insert and change placeholders.
To replace placeholders with the required values, use the client-side ReplacePlaceholders or server-side ReplacePlaceholders method.
In this demo, placeholder values are gotten from a database. You can modify a document template and preview the results for different persons (database records).
Local Copy of this Demo To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer. |
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxHTMLEditorDemos |