Ok, I can provide the sample code, but it's functionally similar to the sample in the help file:
|private MOSSRadEditor contentEditor; |
|protected override void CreateChildControls() |
| contentEditor = new MOSSRadEditor(); |
| contentEditor.Content = "Enter content..."; |
| base.CreateChildControls(); |
The code complains already in Visual Studio that MOSSRadEditor has no constructors defined and I cannot build the project.
When I look inside the RadEditorSharePoint assembly with Reflector I can see the reason; the constructor is internal, so I cannot call it. This has been changed from the previous RadEditor version, so I was wondering if the change is deliberate. Below is a snapshot of the Reflector disassembly.
|public class MOSSRadEditor : RadEditor |
| // Fields |
| private bool _allowExternalUrls; |
| private Color _editorBackgroundColor; |
| private int LCID; |
| // Methods |
| internal MOSSRadEditor(); |