I have an aspx page with a ckeditor inside an updatePanel with a require filed validator on it, on partial postback the validator fires but the editor disappear
I made a sample page to test it:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestCkEditor.aspx.cs" Inherits="ckeditor_TestCkEditor" %> <%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %> <!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></title> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> </head> <body> <form id="form1" runat="server"> <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="true" EnableScriptLocalization="true" EnablePageMethods="true" CombineScripts="true" EnablePartialRendering="true" ScriptMode="Release"> </ajaxToolkit:ToolkitScriptManager> <div> <asp:UpdatePanel ID="up1" runat="server"> <ContentTemplate> <CKEditor:CKEditorControl ID="txtEsito" runat="server"></CKEditor:CKEditorControl> <asp:RequiredFieldValidator ErrorMessage="L'esito è obbligatorio" ControlToValidate="txtEsito" SetFocusOnError="true" runat="server" ID="rfvEsito" Display="None" ValidationGroup="vgrEsito" /> <ajaxToolkit:ValidatorCalloutExtender ID="vceEstio" runat="server" TargetControlID="rfvEsito" CloseImageUrl="~/Immagini/ico-chiudi.gif" WarningIconImageUrl="~/Immagini/ico-warning.gif" PopupPosition="TopLeft" /> <asp:Button ID="btn1" runat="server" ValidationGroup="vgrEsito" Text="postback" /> </ContentTemplate> </asp:UpdatePanel> <br /> <br /> </form> </body> </html>
Re: CKEditor, UpdatePanel and Validator
Could you try CKEditor for ASP.NET 3.6.2 ?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKEditor, UpdatePanel and Validator
Thank you, the new version fix the problem
Re: CKEditor, UpdatePanel and Validator
I have a similar problem. But my ckeditor is in a formview.
I have upgraed to 3.6.2 but it still does not appear.
I realisd that if I place another ckeditor out side the formview, both ckeditor will appear.
Please advice, thank you.