We are able to declare a custom styles list correctly. The issue that we have is when we apply a custom style to a selection the RadEditor defaults to wrapping the selection in "Font" tags. We want it to wrap in "Div" tags, instead.
Given the following HTML code, before applying styles:
<p>my text document looks kind of like this. And sometimes I highlight a whole tag like this:</p> <p>MY HEADER</p> <p>or maybe I highlight text INSIDE OF THIS P TAG and turn it into a subparagraph.</p>Here is what we get when we apply styles:
<p>my text document looks kind of like this. And sometimes I highlight a whole tag like this:</p> <p class="section header">MY HEADER</p> <p>or maybe I highlight text <FONT class="section subparagraph">INSIDE OF THIS P TAG</FONT> and turn it into a subparagraph.</p> And here is what we want (The <p> tags for MY HEADER and the <FONT> tags inside the second sentence to be <div> tags):
<p>my text document looks kind of like this. And sometimes I highlight a whole tag like this:</p> <div class="section header">MY HEADER</div> <p>or maybe I highlight text <div class="section subparagraph">INSIDE OF THIS P TAG</div> and turn it into a subparagraph.</p> What and how is the best possible way to make this adjustment?
We are using 2013 Q1 controls, in an ASP.NET C# project.
Respectfully,
Bre