Content Block - Custom CSS / etc.
Hello,
We're getting started with our first project using sitefinity 4 beta 2.
we're excited, it's really nice.
One thing we can't figure out though -- we have our master page created, and we drag a content block on the screen. In previous versions, we could highly customize the editor (we'd remove fonts so clients cant pick something they shouldnt, and we'd have a pulldown of styles for them to choose from) -- we would do this by customizing the editortoolsfile.xml file in the old /sitefinity/admin folder.
How is this accomplished in the new version?
Removing fonts is less of a concern, but having our own CSS styles appear in the editor would be quite important
thanks!
Chris
Hello Chris,
The ContentBlock control has a public property - LayoutTemplatePath which you can use to set map an external template and change some of the properties that HtmlField control expose. HtmlField wraps RadEditor control that ContentBlock uses.
sample
<sf:HtmlField ID="htmlEditor" runat="server" Width="99%" Height="370px" DisplayMode ="Write" EditorToolsConfiguration="Custom" EditorConfigurations="~/test.xml" > </sf:HtmlField>Thank you!