KindEditor.ready(function (K) {
   var editor = K.editor({
     cssPath : '/cneditor/plugins/code/prettify.css',
     uploadJson : '/cneditor/asp/upload_json.asp',
     allowFileManager : true
   });
K('#insertfile').click(function() {
   editor.loadPlugin('image', function() {
     editor.plugin.imageDialog({
	 showRemote : false,
     imageUrl : K('#c_qq4').val(),
     clickFn : function(url, title, width, height, border, align) {
        K('#c_qq4').val(url);
        editor.hideDialog();
     }
    });
   });
});
});
