$(document).ready(function () {
KindEditor.ready(function (K) {
editor = K.create('#txtMainContent', {
cssPath: '../../common/kindeditor/plugins/code/prettify.css',
uploadJson: '../../common/kindeditor/asp.net/upload_json.ashx',
fileManagerJson: '../../common/kindeditor/asp.net/file_manager_json.ashx',
allowFileManager: true,
items : [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
});
})
<textarea id="txtMainContent" runat="server" cols="100" rows="8" style="80%;min-350px;height:300px;visibility:hidden;"></textarea>