Opened 10 years ago

Closed 10 years ago

#10730 closed Bug (invalid)

Multiple instances of ckeditor 4.2 in don't work well with asp:linkbutton controls

Reported by: joedatesta Owned by:
Priority: Normal Milestone:
Component: General Version: 4.2
Keywords:, multiple instances of ckeditor Cc:


If you’re using multiple instances of ckeditor and trying to post back with an linkbutton control. Only one of the instances survives the postback.

This demonstrates the issue. TextBoxSavings changes disappear in the postback.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="Travelzoo.Web.Intranet.New.WebForm2" validateRequest="false" %>

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "">

<html xmlns=""> <head runat="server">



<script type="text/javascript" src="/js/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="/js/ckeditor/adapters/jquery.js"></script>


<form id="form1" runat="server"> <div>

<asp:Literal ID="litResults" runat="server"></asp:Literal><br /> <asp:TextBox runat="server" ID="TextBoxMarketPricing" CssClass="span7 ckeditor" TextMode="MultiLine" Rows="4">&nbsp;</asp:TextBox><br /> <asp:TextBox runat="server" ID="TextBoxSavings" CssClass="span7 ckeditor" TextMode="MultiLine" Rows="4">&nbsp;</asp:TextBox><br /> <asp:LinkButton ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" />

</div> </form>

</body> </html>

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls;

namespace Travelzoo.Web.Intranet.New {

public partial class WebForm2 : System.Web.UI.Page {

protected void Page_Load(object sender, EventArgs e) {

if (IsPostBack) {

TextBoxMarketPricing.Text = "<b>Market Pricing</b>"; TextBoxSavings.Text = "<b>Savings</b>";



protected void btnSave_Click(object sender, EventArgs e) {

litResults.Text = TextBoxMarketPricing.Text + "<br/>" + TextBoxSavings.Text;




This is Visual Studio 2010 running C# on Windows 7 in IE 10.

Change History (1)

comment:1 Changed 10 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

Please use CKEditor ASP.NET for that and not plain JavaScript CKEditor.

You may use CKE 4.2 client-side with CKE ASP.NET 3.6.4 server side.

  1. Go to CKEditor site nad download CKE 4.2 FULL Package
  2. Extract it into ckeditor folder
  3. Go to path_to_your_ckeditor_aspnet_folder/_Samples/ and replace existing ckeditor folder with the one you have downloaded. The only thing you won't be able to set from ASP.NET Control is ACF:!/guide/dev_advanced_content_filter!/api/CKEDITOR.filter-method-addTransformations!/api/CKEDITOR.config-cfg-allowedContent!/api/CKEDITOR.config-cfg-extraAllowedContent

which you would have to configure or disable from config.js file.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy