Hi,
I'm working in the development of a set of DNN Modules (big project), in this modules popups are used in many places, like a way to present or edit details. I have found a problem with DNN8, when I use TextEditor control in a popup, It throws this exception:
" An error has occurred. DotNetNuke.Services.Exceptions.ModuleLoadException: Length cannot be less than zero. Parameter name: length ---> System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length at System.String.Substring(Int32 startIndex, Int32 length)
at DNNConnect.CKEditorProvider.Web.EditorControl.get_Settings() at DNNConnect.CKEditorProvider.Web.EditorControl.GenerateEditorLoadScript() at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at DotNetNuke.UI.UserControls.TextEditor. (EventArgs e) --- End of inner exception stack trace --- "
Please see image attached.
We use ASPX popups (is a complex and large module, and this could be really hard to change), that inherits from DotNetNuke.Framework.PageBase, and also add javascript and css to use the same look and feel than the original pages from where the popup was launched (let me know if you need more details about this).
When I include the control in a ASCX used in the module controls, it works great, the problem is just in the ASPX that we use for popups. I tried to debug, but I was not able to find the ckeditor code used for DNN8, any suggestions will be appreciated.
Thanks