I ran into the same problem. On a simple page, I tested LinkButton and Button. The problem is that LinkButton does not submit the form directly. It displays the link and raises the __doPostBack event, so this is a problem for CKEditor. I tried setting a text box like Nirmal , but that didn't work either. This is how I solved it.
Title:
<script type="text/javascript"> $(document).ready(function () { $("#tBody").ckeditor(); }); function setValue() { $("#hfBody").val(CKEDITOR.instances.tBody.getData()); } </script>
Inside the form:
<asp:TextBox ID="tBody" runat="server" TextMode="MultiLine"/> <asp:HiddenField ID="hfBody" runat="server" /> <asp:LinkButton ID="btnSend" Text="Link" runat="server" OnClick="X_Click" OnClientClick="setValue()"/>
FROM#
protected void X_Click(object sender, EventArgs e) { divResult.InnerHtml = hfBody.Value; tBody.Text = hfBody.Value; }
source share