Editor on Page

Vote:
 

We have been using an editor on a page in R1 implemented like below, but after auppgrading to R2 we get the following error on the page:
[Error: No property "MyLongStringProperty".]      

What kind of changes has been done? 

Info: I do not want the editor to fetch values from a certain page in EPiServer we only want to use yte editor and it's functionality including the ability to select images etc from EPiServer filesystem.

                 

<EPiServer:Propertyid="myHtmlEditor"Width="650"height="350"EditMode="true"runat="server"/>

 

And this on cs:
overridevoid OnInit(EventArgs e)
{
base.OnInit(e);
if (!Page.ClientScript.IsClientScriptIncludeRegistered("system.js"))
{
Page.ClientScript.RegisterClientScriptInclude("system.js", ((PageBase)Page).ResolveUrlFromUI("javascript/system.js"));
Page.ClientScript.RegisterClientScriptInclude("system.aspx", ((PageBase)Page).ResolveUrlFromUI("javascript/system.aspx"));
Page.ClientScript.RegisterClientScriptInclude(
"episerverscriptmanager.js", ((PageBase)Page).ResolveUrlFromUtil("javascript/EPiServerScriptManager.js"));
}
PropertyXhtmlString xhtmlString = newPropertyXhtmlString();

// select chosen options or use EditorToolOption.All
xhtmlString.EditorToolOptions = EditorToolOption.All;
xhtmlString.Name = "MyLongStringProperty";
HtmlEditor.InnerProperty = xhtmlString;
}

#50144
Apr 14, 2011 9:07
Vote:
 

Got it!

Had to set PropertyName of the control in design view as well.

#50145
Apr 14, 2011 9:56
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.