I have a module written for DNN 6.x that I am porting over to DNN 7.x
I came across a problem that I can't seem to figure out. I have code written (which worked perfectly in DNN 6.x) that took a DNN TextEditor control, and retrieved it's RADEditor control. I need to do this because I programatically make changes to the RADEditor's appearance for my module (ie: Show/Hide Tabs on-the-fly, update the SnippetsManager contents, update that ImageManager settings, etc.)
The problem I am getting now is stating: Unable to cast object of type 'DotNetNuke.RadEditorProvider.Components.DnnEditor' to type 'Telerik.Web.UI.RadEditor'
My code took the DNNTextEditor control, and then searched it for the RadDialogOpener control. From there I took the RadDialogOpener's parent which would equate to the RadEditor, which I could then manipulate as needed. However, not the RadDialogOpener's parent is a DNNEditor, and I can't seem to figure out how to get it's reference and use it. I tried changing my object that I am saving the parent into from Telerik.Web.UI.RadEditor to DotNetNuke.Web.UI.WebControls.DnnEditor...but that didn't work. I ended up getting this error: Unable to cast object of type 'DotNetNuke.RadEditorProvider.Components.DnnEditor' to type 'DotNetNuke.Web.UI.WebControls.DnnEditor'
I tried to define the object as , DotNetNuke.RadEditorProvider.Components.DnnEditor, but that definition doesn't exist. I am at my wits end and I am in a serious bind. I have to get this working next few days to avoid another major issue that will hit November 1st.
Cane anyone PLEASE help?