如果页面上没有

 <asp:ScriptManager ID="Scriptmanager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            </ContentTemplate>
        </asp:UpdatePanel>

那么后台可以通过txtcontent.Text获取ckeditor的值。

如果有了的话,后台通过txtcontent.Text就获取不到了。

js中获取ckeditor值的方法,  var editor = CKEDITOR.replace('txtContent');

 var content = editor.document.getBody().getHtml();

设置ckeditor值的方法

   editor.document.getBody().setHtml(content);

相关文章:

  • 2021-08-10
  • 2021-10-12
  • 2022-02-02
  • 2021-10-03
  • 2022-12-23
  • 2021-12-15
  • 2021-10-02
猜你喜欢
  • 2022-03-02
  • 2021-09-22
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
相关资源
相似解决方案