This is a simple example of something I am investigating for use in mail merges.
Telerik suggests using CSS style sheets to stylize the contents of the RadEditor and it works great as expected - in the browser. The issue I am running into is happening when trying to perform a mail merge using the data captured in the RadEditor. The only data captured in the RadEditor is the HTML and obviously doesn't include any styles (Code Snippet 1).
Captured Data 1:
My question is: Is there any setting I can change for the RadEditor to honor the styles for the ordered list displayed in Code Snippet 2 so that the inline styles are saved with the rest of the content?
If there is no setting I can change, how can I go about forcing the injection of these inline styles when the user is entering data into the RadEditor?
Code Snippet 2:
Thanks,
Kenny
kenny@kennywalter.com
http://kennywalter.com/
Telerik suggests using CSS style sheets to stylize the contents of the RadEditor and it works great as expected - in the browser. The issue I am running into is happening when trying to perform a mail merge using the data captured in the RadEditor. The only data captured in the RadEditor is the HTML and obviously doesn't include any styles (Code Snippet 1).
Captured Data 1:
<
ol
>
<
li
>Item 1</
li
>
<
li
>Item 2
<
ol
>
<
li
>Sub item a</
li
>
<
li
>Sub item b
<
ol
>
<
li
>1</
li
>
<
li
>2</
li
>
<
li
>3
<
ol
>
<
li
>11</
li
>
</
ol
>
</
li
>
</
ol
>
</
li
>
</
ol
>
</
li
>
</
ol
>
My question is: Is there any setting I can change for the RadEditor to honor the styles for the ordered list displayed in Code Snippet 2 so that the inline styles are saved with the rest of the content?
If there is no setting I can change, how can I go about forcing the injection of these inline styles when the user is entering data into the RadEditor?
Code Snippet 2:
<
ol
style
=
"list-style-type: decimal;"
>
<
li
>Item 1</
li
>
<
li
>Item 2
<
ol
style
=
"list-style-type: lower-alpha;"
>
<
li
>Sub item a</
li
>
<
li
>Sub item b
<
ol
style
=
"list-style-type: lower-roman;"
>
<
li
>1</
li
>
<
li
>2</
li
>
<
li
>3
<
ol
style
=
"list-style-type: lower-roman;"
>
<
li
>11</
li
>
</
ol
>
</
li
>
</
ol
>
</
li
>
</
ol
>
</
li
>
</
ol
>
Thanks,
Kenny
kenny@kennywalter.com
http://kennywalter.com/