[FIX] website: summernote: don't need to add a white space when delete a selection if the string is not fully erase
This commit is contained in:
@@ -581,7 +581,7 @@ define(['summernote/editing/Editor', 'summernote/summernote'], function (Editor)
|
||||
}
|
||||
|
||||
eo = so;
|
||||
if(!dom.isBR(sc) && !sc.textContent.match(/\S|\u00A0/)) {
|
||||
if(!dom.isBR(sc) && !sc.textContent.match(/\S|\u00A0/) && !dom.isText(dom.hasContentBefore(sc)) && !dom.isText(dom.hasContentAfter(sc))) {
|
||||
ancestor = dom.node(sc);
|
||||
var text = document.createTextNode('\u00A0');
|
||||
$(sc).before(text);
|
||||
|
||||
Reference in New Issue
Block a user