Hello Duneel,
Thank you for contacting Telerik Support.
Follow the below steps to add the button to your Content Block Editor globally.
Open your project in Visual Studio
1. Create a file
EditorTools.ascx in the root directory of your SitefinityWebApp project and paste the below sample code inside:
Copy Code
Copy Code
2. Create a folder named
Controls in yourSitefinityWebApp project and inside create a file named Tools.xml. Paste the following code inside:
Copy Code
Copy Code
3. From Sitefinity backend go to
Administration>>Settings>>Advanced>>Appearance>>EditorConfigurations click on the
Create New button and fill in the values accordingly (all without the quotes):
Key: "tools"
Value: "~/Controls/Tools.xml" (this is the relative path to your Tools.xml file, change it accordingly if you wish to put it in other location)
4. Build The project
5. From Sitefinity backend go to
Administration>>Settings>>Advanced>>Controls>>ViewMap click on the
Create New button and fill in the values accordingly (all without the quotes):
HostType:
Telerik.Sitefinity.Modules.GenericContent.Web.UI.ContentBlockDesigner
LayoutTemplatePath:"~/EditorTools.ascx" (
relative path to the template where you have declared
HtmlField control)
For more information about customizing your new button's icon and implementing its functionality. please refer to
Advanced customizations section of our ASP.NET Editor.
I hope this
information helps. Please let me know if I can assist you any further with this
service request. Thank you in advance.
Kind regards,
Boyan Barnev
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!