1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Content Block - Custom CSS / etc.

Content Block - Custom CSS / etc.

3 posts, 0 answered
  1. Chris Hayward
    Chris Hayward avatar
    36 posts
    Registered:
    17 Dec 2009
    19 Oct 2010
    Link to this post
    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
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    20 Oct 2010
    Link to this post
    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
  3. Chris Hayward
    Chris Hayward avatar
    36 posts
    Registered:
    17 Dec 2009
    20 Oct 2010
    Link to this post
    Thank you!


3 posts, 0 answered