Opened 13 years ago
Last modified 12 years ago
#8924 confirmed Bug
Problem with ckEditor inside div with visible=false
Reported by: | David | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Server : ASP.Net | Version: | 3.6.1 |
Keywords: | Cc: |
Description
I was previously using 3.6.1, which worked fine for the most part, but in order to fix an issue that cropped up (support for ipads), we decided to upgrade to the latest version.
Using 3.6.3, i now receive the following error when the ckeditor tries to load:
Sys.ScriptLoadFailedException: The script ' http://localhost/idev/ckeditor/ckeditor.js?t=B8DJ5M3' failed to load. Check for: Inaccessible path. Script errors. (IE) Enable 'Display a notification about every script error' under advanced settings. Missing call to Sys.Application.notifyScriptLoaded().
My instance of ckEditor is located inside a div which is located inside an AJAX update panel. The div initially is set to be visible = false, as per the subject. It is toggled to be visible when a button is pushed. The js file is actually at that location as well.
Thinking this could be a problem/conflict with something else in my code, I made a very simple website which ONLY had a ckEditor contained in a div contained in an update panel.
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %> <html xmlns=" http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="scriptManager1" runat="server" /> <asp:UpdatePanel ID="upCk" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Button ID="btnToggle" runat="server" Text="toggle" /> <div id="divCk" runat="server" visible="false"> <CKEditor:CKEditorControl ID="ckEdit" runat="server" /> </div> </ContentTemplate> </asp:UpdatePanel> </div> </form> </body> </html>
(the button simply toggles visibility and updates the updatePanel when clicked)
When divCk is set to initially be visible=true, ckEditor works perfectly. When divCk is set to initially be visible=false and the user toggles divCk's visibility by pressing the button, ckEditor does not load correctly, instead presenting the error mentioned above.
I've tested it in 3.6.2 and have the same problem, but, as noted, do not experience it in 3.6.1.
Am I missing some change to how we should load ckEditor post 3.6.1?
Attachments (1)
Change History (3)
comment:1 Changed 13 years ago by
Component: | General → Server : ASP.Net |
---|---|
Keywords: | Ajax Inaccessible_path visible=false updatePanel removed |
Changed 12 years ago by
Attachment: | updatePanel.zip added |
---|
comment:2 Changed 12 years ago by
Status: | new → confirmed |
---|---|
Version: | 3.6.3 → 3.6.1 |
I have used page provided by @David and can say that I was able to reproduce this problem even in CKEditor 3.6.1 ASP.NET so I'm not sure if this is CKEditor or Configuration problem.
Most commonly repeated solution:
http://msdn.microsoft.com/en-us/library/bb310952%28v=vs.100%29.aspx http://forums.asp.net/p/1170450/1958413.aspx