ajax加载content(textarea)的值后动态加载kindeditor:
<script type="text/javascript"> var htmlobj=$.ajax({url:"Ajax.jsp",async:false}); $("#content").val(htmlobj.responseText); $.getScript('kindeditor-min.js', function() { KindEditor.basePath = '/'; KindEditor.create('textarea[name="content"]', { themeType : 'default', allowFileManager : true, uploadJson : 'jsonupload.php', fileManagerJson : 'jsonfilemanager.php' }); }); </script>