Admin Plugin with XHTML Editor


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

Does anyone have a sample?


Mar 05, 2009 4:57
You can ask a property for it's WebControl and set it into edit mode.
IPropertyControl control = PropertyControlClassFactory.Instance.
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.

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.