KindEditor编辑器在ASP.NET中透过后台取值

KindEditor编辑器在ASP.NET中通过后台取值

3.5.5版本中,后台通过TextBox1.Text一般来说可以获取到值,但是有些时候获取出来的值是空的,这时候只要在前台的KE初始化参数中加个参数 syncType: "auto" 就行了,具体原因我也不知道,只知道加上这个就可以解决了.下面给出前台的完成的初始化

 

        KE.show({
            id: '<%=txtintro.ClientID %>',
            resizeMode: 1,
            allowPreviewEmoticons: false,
            allowUpload: false,
            items: [
    'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline', 'lineheight',
    'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
    'insertunorderedlist', '|', 'emoticons', 'image', 'link'],
            syncType: "auto"
        });