KindEditor从数据库获取到的值在textarea中显示错乱
KindEditor代码KindEditor.create('textarea[name="storeIntroduce"]',{minWidth:268,width:2...
KindEditor
代码KindEditor.create('textarea[name="storeIntroduce"]', { minWidth : 268, width : 268, resizeType : 0, allowPreviewEmoticons : false, allowImageUpload : false, allowFileManager : true, items : [ 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', '|', 'link' ], afterCreate : function() { this.sync(); }, afterBlur : function() { this.sync(); }, afterChange : function() { $("#tIntroduceContent").val($("#storeIntroduce").val()); if (this.count("text") > 1000) { $("#loganCountIntroduce").css({ "color" : "red" }); } else { $("#loganCountIntroduce").css({ "color" : "black" }); } $("#loganCountIntroduce").html(this.count("text")); } }); 展开
代码KindEditor.create('textarea[name="storeIntroduce"]', { minWidth : 268, width : 268, resizeType : 0, allowPreviewEmoticons : false, allowImageUpload : false, allowFileManager : true, items : [ 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', '|', 'link' ], afterCreate : function() { this.sync(); }, afterBlur : function() { this.sync(); }, afterChange : function() { $("#tIntroduceContent").val($("#storeIntroduce").val()); if (this.count("text") > 1000) { $("#loganCountIntroduce").css({ "color" : "red" }); } else { $("#loganCountIntroduce").css({ "color" : "black" }); } $("#loganCountIntroduce").html(this.count("text")); } }); 展开
1个回答
2015-10-13
展开全部
给KindEdito这个赋值不对吧,看看提供api,你保存的本身就带有html的标签,所以展示时是不是要用html("dfdffd")这样的
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询