怎么给Ckeditor 赋值

http://497155382.blog.163.com/blog/static/1949123201372194327967/

 

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

$(function () {
    CKEDITOR.replace("txtContent");
});

 

<asp:TextBox ID="txtContent" runat="server" CssClass="ckeditor" Height="106px" TextMode="MultiLine"
                                Width="657px"></asp:TextBox>

赋值:

    CKEDITOR.instances.TextBox1.setData(con[1]);

这里的TextBox1为空间id或name

posted @ 2014-10-14 21:36  小蚕豆  阅读(1162)  评论(0编辑  收藏  举报