We are using the Editor as the WYSIWYG for our client CMS. I am trying to make the layout inside the Editor window look as close to the real site as possible, so I am using the <CssFiles> feature to include some CSS, and the <classes> feature in the toolset XML to add custom classes to the Apply CSS Class menu. However, when I try to add new classes or edit old ones in the toolset XML, they are not getting picked up by the editor when I refresh the page.
Here is the code I am using to pull in CSS files into the editor window:
Bootstrap.css is the framework styles, the fonts css is for webfont support, and editor2.css is to define the custom styles I want the client to see in the window.
Here is the code from the toolset XML:
The only one that is working is the "Lead Paragraph" style. The others do not appear in the dropdown no matter what I do. I have tried changing the name of the toolset file to force a recache; cleaning and rebuilding the solution; and of course, viewing the page in a new browser to bypass cache issues.
Is there some kind of syntax rule I'm not aware of? Or limitations to the style sheets that can be added to the editor window using the <CssFiles> feature?
Here is the code I am using to pull in CSS files into the editor window:
<
CssFiles
>
<
telerik:EditorCssFile
Value
=
"~/_EditorToolSets/bootstrap.css"
/>
<
telerik:EditorCssFile
Value
=
"http://fast.fonts.net/cssapi/c02e6b72-e9dd-4ba0-a76c-bb710e27141a.css"
/>
<
telerik:EditorCssFile
Value
=
"~/_EditorToolSets/editor2.css"
/>
</
CssFiles
>
Bootstrap.css is the framework styles, the fonts css is for webfont support, and editor2.css is to define the custom styles I want the client to see in the window.
Here is the code from the toolset XML:
<
classes
>
<
class
name
=
"Lead Paragraph"
value
=
".lead"
/>
<
class
name
=
"CAC Image"
value
=
".cac-img"
/>
<
class
name
=
"CAC Button"
value
=
".cac-btn"
/>
</
classes
>
The only one that is working is the "Lead Paragraph" style. The others do not appear in the dropdown no matter what I do. I have tried changing the name of the toolset file to force a recache; cleaning and rebuilding the solution; and of course, viewing the page in a new browser to bypass cache issues.
Is there some kind of syntax rule I'm not aware of? Or limitations to the style sheets that can be added to the editor window using the <CssFiles> feature?