var code = $('#summernote').code(),
filteredContent = $(code).text().replace(/\s+/g, '');
if(filteredContent.length > 0) {
// content is not empty
} else {
// content is empty
}
summernote 编辑器取值判断是否为空的isEmpty官方的方法不起作用的解决办法
var code = $('#summernote').code(),
filteredContent = $(code).text().replace(/\s+/g, '');
if(filteredContent.length > 0) {
// content is not empty
} else {
// content is empty
}
summernote 编辑器取值判断是否为空的isEmpty官方的方法不起作用的解决办法
本文标题:summernote 编辑器取值判断是否为空的isEmpty官方
本文链接:https://www.haomeiwen.com/subject/imhwcqtx.html
网友评论