Cache the childrens of editable elements
This commit is contained in:
parent
6ab9570474
commit
ec95de9908
2 changed files with 14 additions and 0 deletions
|
|
@ -533,6 +533,7 @@
|
|||
} else if (editable) {
|
||||
// contenteditable nodes use `innerHTML` instead of `nodeValue`.
|
||||
editable.innerHTML = data
|
||||
nodes = [].slice.call(editable.childNodes)
|
||||
} else {
|
||||
// was a trusted string
|
||||
if (nodes[0].nodeType === 1 || nodes.length > 1 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue