Hello,
I'm trying to personalize styles, classes and fonts used by the new editor provider, starting from
this post. I actually could personalize the list of paragraph styles and fonts, but cannot completely fix the list of CSS styles: my dropdown apparently duplicates listed items, so that I have three times the same classes.
What I did was modifying my
ToolsDefault.xml, adding fontNames, paragraphs and classes nodes like this:
<fontNames>
<item name="Trebuchet MS" />
<item name="Arial" />
<item name="Helvetica" />
</fontNames>
<paragraphs>
<paragraph name="<h1>Heading 1</h1>" value="<H1>" />
<paragraph name="<h2>Heading 2</h1>" value="<H2>" />
<paragraph name="<h3>Heading 3</h1>" value="<H3>" />
<paragraph name="Normal" value="p" />
</paragraphs>
<classes>
<class name="Clear Class" value="" />
<class name="Head" value=".Head" />
<class name="SubHead" value=".SubHead" />
<class name="SubSubHead" value=".SubSubHead" />
<class name="Normal" value=".Normal" />
<class name="NormalBold" value=".NormalBold" />
<class name="NormalRed" value=".NormalRed" />
</classes>
While the "paragraph styles" and "fonts" dropdown now only show me the items listed here,
my "apply css class" dropdown duplicates all items in list.
First series is shown with applied style (e.g. the "Head" class is displayed using the Head class, in the dropdown), but then I have another two times all classes where names don't get their class applied, and finally one more series with applied styles.
Adding a property named "CssClasses" to my ConfigDefault.xml apparently does not produce any changes.
Same problem with DNN version 5.5.0 and 5.4.4. (Telerik Editor Provider is version 5.4.2 on both).
Can anybody help?