Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): 3.x Pre-release forums (retired) > RAD Editor Format Code Block

RAD Editor Format Code Block

  • bnye Master avatar

    Posted on Apr 12, 2007 (permalink)

    I like the "Format Code Block" that you have here in the sitefinity RAD Editor. Is this tool avaible to us in the tools file? Perhaps I am just not seeing it.

    Sincerely,

    Ben

    Reply

  • Rebecca Rebecca admin's avatar

    Posted on Apr 12, 2007 (permalink)

    Hi Ben,

    Please find the ~/Admin/Templates/GenericContent/ToolsFile.xml and add this line:

    <tool name="FormatCodeBlock" enabled="true"/>

    Save the file, drop a new Generic Content control to the page and you will see the Format Code Block button.

    Sincerely yours,
    Rebecca
    the telerik team

    Instantly find answers to your questions at the new telerik Support Center

    Reply

  • Posted on Apr 21, 2010 (permalink)

    Hi,
    Our web could use a convenient way to display code fragments now and then. It would not necessary for regular users to be able to input auto-formatted code. We just need static display created by web editors.
    I found a Format Code Control in the Sitefinity Marketplace, but this one does not work out of the box with recent Sitefinity versions.

    The approach in this thread might do the trick for me. Does it still work with the most resent Sitefinity version? (3.7SP3)
    Would I have to add and edit external templates? (generic control?)
    Name/location of files?

    Thanks for any help.

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Apr 21, 2010 (permalink)

    Hi olav,

    The code from the MarketPlace should work with the latest version of Sitefinity. Most probably you need to update the references.

    You could add the FormatCodeBlock tool to the RadEditor by modifying Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml.

    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.

    Reply

  • Posted on Apr 21, 2010 (permalink)

    Thanks, just added
    <tools>
      <tool name="FormatCodeBlock" text="Format Code Block Dialog" />
    </tools>

    to the EditorToolsFile.xml.
    Works fine! (just like above)

    Note for myself: Have this file on my list for manual merges during Sitefinity upgrades.

    Reply

  • mukesh avatar

    Posted on Mar 7, 2011 (permalink)

    hi ,

    I am using the telerik Editor ,i need to edit image ,please let me known that how to use image manager with out using editor. if u have some link or demo for this please send it.

    thanks and regards
    Mukesh  

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Mar 7, 2011 (permalink)

    Hello,

    The image manager is part of the RadEditor control and it can be used only in its context.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): 3.x Pre-release forums (retired) > RAD Editor Format Code Block