SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to use the HtmlEditor control within an application page in SharePoint 2007 but I'm unable to get it to work. Do you have any ideas what I need to do? Using the following aspx code the editor appears on the page but I get JavaScript errors when I try to use it.

<%@ Page Language="C#" MasterPageFile="~/_layouts/application.master" Inherits="Microsoft.SharePoint.WebControls.LayoutsPageBase" %>
<%@ Register Tagprefix="Publishing" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ID="Main" runat="server" contentplaceholderid="PlaceHolderMain" >
    Publishing:HtmlEditor <Publishing:HtmlEditor runat="server"  />

To use this code place it in an aspx file within the layouts directory and browse from a SharePoint site (e.g. /_layouts/testpage.aspx). You will also need to have MOSS installed as this is a control from the Publishing namespace.

Hope you can help. Thanks.


share|improve this question

I think HTML editor is not intended to use that way.Is it possible to use Content Editor Web Part instead?

share|improve this answer
I want the users to be able to insert images and links (as well as text) from SharePoint content so the asset selectors are very useful. I've actually got it working and will add an answer shortly. – j.strugnell Nov 10 '10 at 16:38
up vote 1 down vote accepted

I've got it working. It turns out I need to manually add a reference to another JavaScript file, as follows:

<script type="text/javascript" language="javascript" src="/_layouts/1033/form.js"></script>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.