This is a migrated thread and some comments may be shown as answers.

[Solved] Rad Editor customization

1 Answer 130 Views
Editor
This is a migrated thread and some comments may be shown as answers.
RAM SHAN
Top achievements
Rank 1
RAM SHAN asked on 20 Jul 2009, 12:44 AM
Hello, I am new to this community and telerik controls. Just want to see if we can use rad editor to customize and use the control for what we need.


 currently, we send out emails to clients with a fixed format message ( from database , which is stored in html format ( text field at database level ).  we substitue some values in the html format loaded from database in our business layer and generate the body and subjects from it and send an html email

question is, is it possible to use rad editor to have the user customize the subject and body of their emails on asp.net pages ( especially , the format, styles ), insert some additional database values ( may be like a dropdown of a set of values in specific places, which can later be substitued in business layer , dynamically) , take a preview of the message before sending an email and deliver it as an email?

any ideas, please let me know.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Jul 2009, 08:12 AM
Hi RAM,

RadEditor is web HTML editor and you can create, edit and produce only pure HTML/XHTML content with it. You cannot edit at the same time the BODY and SUBJECT of the email. To do that you should place two RadEditor's on the page: one for the subject and another one for the body of the e-mail.

RadEditor offers useful tools for applying styles (the Apply Class dropdown), apply formatting to the paragraphs and headings (the FormatBlock tool) and inserting predefined html code snippets (the Insert Code Snippets tool). You can configure these tools and instruct your users to use them.
The editor also provides a template manager tool which could be used to insert html pages in the editor.

You can create template files or code snippets that use *system* strings that have some fixed starting and ending characters, e.g. ##FirstName##, or @@FirstName@@ - or something similar.

You should instruct your users what the list of those *system*strings is, so that they can insert those where needed. Then, on the server side, all you need to do is run some simple String.Replace methods that will replace such a string with the exact database row data.

In case your scenario is somewhat different, please let us know in more details and we will try to help you further.

Sincerely,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
RAM SHAN
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or