fay 6 years ago
parent
commit
77b9af480a
  1. 2
      src/case/richeditor/niceditor/niceditor.js

2
src/case/richeditor/niceditor/niceditor.js

@ -394,7 +394,7 @@
var html = last.html().toLowerCase(); var html = last.html().toLowerCase();
var nodeName = last.nodeName; var nodeName = last.nodeName;
if ((html !== "<br>" && html !== "<br\/>") || nodeName !== "P") { if ((html !== "<br>" && html !== "<br\/>") || nodeName !== "P") {
// 最后一个元素不是 <p><br></p>,添加一个空行,重新设置选区 // 最后一个元素不是空行,添加一个空行,重新设置选区
el.append(newLineHtml); el.append(newLineHtml);
this.initSelection(); this.initSelection();
return; return;

Loading…
Cancel
Save