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

Forums / 3.x Pre-release forums (retired) / RAD Editor Format Code Block

RAD Editor Format Code Block

7 posts, 0 answered
  1. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    12 Apr 2007
    Link to this post
    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
  2. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    12 Apr 2007
    Link to this post
    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
  3. olav
    olav avatar
    76 posts
    Registered:
    22 Jan 2007
    21 Apr 2010
    Link to this post
    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.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    21 Apr 2010
    Link to this post
    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.
  5. olav
    olav avatar
    76 posts
    Registered:
    22 Jan 2007
    21 Apr 2010
    Link to this post
    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.
  6. mukesh
    mukesh avatar
    2 posts
    Registered:
    08 Aug 2010
    07 Mar 2011
    Link to this post
    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  
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    07 Mar 2011
    Link to this post
    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!
Register for webinar
7 posts, 0 answered