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

RadEditor Default mode : Styling from Dropdown

1 Answer 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kajal Nagpal
Top achievements
Rank 1
Kajal Nagpal asked on 08 Jul 2009, 01:51 PM
Hello All,

I am using RadEditor default mode. Whenever select text and choose styling from dropdown (Paragraph,Heading1, Heading2..), it is not applied to selected text.

Instead html tag is placed around the selected text in RadEditor.

Also, I am extracting dropdown value from xml files. Below is the xml file I am using for binding dropdown:

 

 

<? xml version="1.0" encoding="utf-8" ?>

<root> 

<para title="&lt;p style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:12px; color:#666666; line-height:19px;'&gt; Normal &lt;/p&gt;" tag="&lt; p &gt;" />

<para title="&lt;h1 style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:35px; color: #00adec;'&gt; Heading1 &lt;/h1&gt;" tag="&lt; h1 &gt;" />

<para title="&lt;h2 style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:18px; color: #FF6699; line-height:22px;'&gt; Heading2 &lt;/h2&gt;" tag="&lt; h2 &gt;" />

<para title="&lt;h3 style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:25px; color:#00adec;'&gt; Heading3 &lt;/h3&gt;" tag="&lt; h3 &gt;" />

<para title="&lt;h4 style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:18px; font-weight:100; color:#999999; line-height:22px;'&gt; Heading4 &lt;/h4&gt;" tag="&lt; h4 &gt;" />
</root>

 

 



Please provide solution for this.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 13 Jul 2009, 08:41 AM
Hi Kajal,

If you are indeed using RadEditor for ASP.NET AJAX (Telerik.Web.UI.dll) then you should use the following toolsfile.xml syntax, e.g.

<?xml version="1.0" encoding="utf-8" ?> 
<root> 
  <tools> 
    <tool name="FormatBlock" /> 
  </tools> 
 
  <paragraphs> 
    <paragraph  name="&lt;p style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:12px; color:#666666; line-height:19px;'> Normal &lt;/p>" value="&lt;p>" /> 
    <paragraph  name="&lt;h1 style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:35px; color: #00adec;'&gt; Heading1 &lt;/h1&gt;" value="&lt; h1 &gt;" /> 
    <paragraph  name="&lt;h2 style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:18px; color: #FF6699; line-height:22px;'&gt; Heading2 &lt;/h2&gt;" value="&lt;h2&gt;" /> 
    <paragraph  name="&lt;h3 style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:25px; color:#00adec;'&gt; Heading3 &lt;/h3&gt;" value="&lt;h3&gt;" /> 
    <para name="&lt;h4 style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:18px; font-weight:100; color:#999999; line-height:22px;'&gt; Heading4 &lt;/h4&gt;" value="&lt;h4&gt;" /> 
  </paragraphs> 
</root> 

For your convenience I have attached my test project.

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
General Discussions
Asked by
Kajal Nagpal
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or