Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCKEditor in aspx popupsCKEditor in aspx popups
Previous
 
Next
New Post
2/2/2016 1:16 PM
 
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




Javier Rodríguez
CTO
www.AccordLMS.com
1775 W. State Street Suite 371, Boise ID 83702 USA
 
 
New Post
2/2/2016 2:21 PM
 

Introducing ASPX pages is not a good practice (in fact, it adds new entry points and opens the door for security concerns). You can do the same things you are doing within the popup by utilizing .ascx files (that inherit from portal module base) instead. 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCKEditor in aspx popupsCKEditor in aspx popups


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out