var kindEditorItems = [
'source', '|', 'undo', 'redo', 'cut', 'removeformat', 'copy', 'paste', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'emoticons', 'link', 'unlink', 'image',
'flash', 'media', 'insertfile', 'table'];
var kindEditorUpload = '/kindsoft/upload_json.ashx';
function createKindEditor(textareaId, callback) {
var editor = KindEditor.create('#' + textareaId, { items: kindEditorItems, uploadJson: kindEditorUpload, resizeType: 0, afterCreate: function() { typeof (callback) == "function" ? setTimeout(function() { callback(); }, 1000) : ""; } });
return editor;
}