Opened 15 years ago
Closed 14 years ago
#8089 closed Bug (fixed)
asp.net Editor disappears on ajax postback
| Reported by: | Wiktor Walc | Owned by: | kaga |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.6.2 |
| Component: | Server : ASP.Net | Version: | |
| Keywords: | Cc: |
Description
Here's a simple sample:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ckTest.aspx.cs" Inherits="CLGHR.ckTest" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>CKEditor Validation Test</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="SM1" runat="server" EnablePartialRendering="true"></asp:ScriptManager>
<div>
<asp:UpdatePanel runat="server" ID="UP1" UpdateMode="Conditional">
<ContentTemplate>
<p>
Title:
<br />
<asp:TextBox ID="TB_Title" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RFV_Title" runat="server" ControlToValidate="TB_Title"
ErrorMessage="Title is required" ValidationGroup="content">*</asp:RequiredFieldValidator>
</p>
<p>
<CKEditor:CKEditorControl ID="TB_Content" runat="server"></CKEditor:CKEditorControl>
</p>
<p>
<asp:Button ID="Btn_Submit" runat="server" ValidationGroup="content"
Text="Submit" onclick="Btn_Submit_Click" />
</p>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
When any ajax postback occurs the editor disappears.
Is this a known problem and are there any workarounds?
Reported in http://cksource.com/forums/viewtopic.php?t=22645
Attachments (5)
Change History (11)
Changed 14 years ago by
| Attachment: | 8089.patch added |
|---|
comment:1 Changed 14 years ago by
| Owner: | set to kaga |
|---|---|
| Status: | new → review |
comment:2 Changed 14 years ago by
| Status: | review → review_passed |
|---|
Looks good, but note: the change in _dev/msajax.js is wrong. There should be:
if (inUpdatePanel && Page_IsValid) {
instead of
if (e && Page_IsValid) {
comment:3 Changed 14 years ago by
Recently reported, to check: http://cksource.com/forums/viewtopic.php?f=11&t=22997
comment:4 Changed 14 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | review_passed → closed |
Fixed with [7258].
Changed 14 years ago by
| Attachment: | 8089_update.patch added |
|---|
comment:5 Changed 14 years ago by
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
Pleas check one more time. I found a little bug. Bug appears on page without any validation - in this case Page_IsValid is undefined
Changed 14 years ago by
| Attachment: | Default.aspx added |
|---|
Simple example to show problem described by BoouM in the same post.
Changed 14 years ago by
| Attachment: | 8089_v2.patch added |
|---|
Path with solution the problem shown in the Default.aspx
Changed 14 years ago by
| Attachment: | validator.aspx added |
|---|
Sample file to reproduce issue reported by shih527
comment:6 Changed 14 years ago by
| Milestone: | → CKEditor 3.6.2 |
|---|---|
| Resolution: | → fixed |
| Status: | reopened → closed |

The problem occurred only if the validation failed.