用Jquery异步调用带有kindeditor的页面时,多次调用页面上的所有输入框被锁死
以下是异步调页面的方法
function loadDemo(path){
$.ajax({
url: path,
dataType: "html",
success: function(data){
data = data.replace(/<\/?link.*>/ig, ""); //Remove link tags
data = data.replace(/<\/?meta.*>/ig, ""); //Remove meta tags
data = data.replace(/<\/?html.*>/ig, ""); //Remove html tag
data = data.replace(/<\/?body.*>/ig, ""); //Remove body tag
data = data.replace(/<\/?head.*>/ig, ""); //Remove head tag
data = data.replace(/<\/?!doctype.*>/ig, ""); //Remove doctype
data = data.replace(/<title.*>.*<\/title>/ig, ""); // Remove title tags
$('#tabC1').empty().html(data);
}
})
}