Content Block - Custom CSS / etc.

Posted by Community Admin on 03-Aug-2018 19:07

Content Block - Custom CSS / etc.

All Replies

Posted by Community Admin on 19-Oct-2010 00:00

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

Posted by Community Admin on 20-Oct-2010 00:00

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>



Regards,
Ivan Dimitrov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 20-Oct-2010 00:00

Thank you!


This thread is closed