New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Using RadEditor in custom MOSS solutions

To use RadEditor in custom MOSS solutions, you can use the MOSSRadEditor base class.

using System;
using System.Runtime.InteropServices;
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Serialization;
using Telerik.SharePoint;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.WebPartPages;

namespace Web_Part1
    public class Web_Part1 : System.Web.UI.WebControls.WebParts.WebPart
        private MOSSRadEditor contentEditor;
        protected override void CreateChildControls()
            contentEditor = new MOSSRadEditor();
            contentEditor.Content = "Enter content...";
        protected override void Render(HtmlTextWriter writer)
            // TODO: add custom rendering code here.
            // writer.Write("Output HTML");

It is important to add references to the Telerik.Web.UI.dll and RadEditorSharePoint.dll files. To do so, you need to follow these steps:

  1. Open the RadEditor for MOSS distribution.

  2. Rename RadEditorMOSS.wsp to and open the file with Windows Cabinet Viewer.

  3. Copy Telerik.Web.UI.dll and RadEditorSharePoint.dll to a convenient place on your disk.

  4. Add the references to the files in your MOSS project.

In this article