Try our conversational search powered by Generative AI!

Admin Plugin with XHTML Editor

Vote:
 

Is it possible to use the XHTML Editor on an admin mode plugin?

Does anyone have a sample?

Thanks

#28356
Mar 05, 2009 4:57
Vote:
 
You can ask a property for it's WebControl and set it into edit mode.
IPropertyControl control = PropertyControlClassFactory.Instance.
CreatePropertyControl(property);
if (control != null)
{
control.PropertyData = myPage.Property["YourProperty"];
control.Properties = myPage.Property;
control.RenderType = RenderType.Edit;
myPanel.Controls.Add((Control) control);
}

 

It is also possible to put your PropertyDataControl subclass in your aspx/ascx file as a web control and assign the values above.

Note that the XHtmlEditor assumes a lot about it's sorrundings. Like that is is placed on a subclass of PageBase, etc.

#28360
Mar 05, 2009 11:47
* 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.