You are on the right way, you just made a mistake in declaring the type of the WebEditor, because Telerik.Cms.Engine.WebControls.HtmlContentEditor
is in Telerik.Cms.Engine
, not in Telerik.Cms
To create such a control, you should create a WebControl which implements IContentContainer
interface. The IContentContainer.Contents
property of that control should have an attribute which implements IWebUITypeEditor
|[WebEditor("Telerik.Cms.Engine.WebControls.HtmlContentEditor, Telerik.Cms.Engine")] |
|public object Content |
Therefore, you should also create a WebEditor
control or use an existing one e.g. Telerik.Cms.Engine.WebControls.HtmlContentEditor
. This control will be displayed in the Content tab when editing the IContentContainer
In case your WebEditor
, you will be able to use all its functionality such as content sharing and branching.
By the way, we are now working on control designers feature which is to be part of the 3.1 version release. This feature will provide mechanism for creating control designers for editing the control properties. The designer control will be an alternative way for editing the control. It will appear on the left side of the Properties tab (like in GenericContent). The idea is to have a user-friendly interface for editing the most popular properties of the control.
Please let us know if you have additional questions.
the Telerik team