mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-24 01:02:31 +01:00
Fixed converting querySelectorAll results to array (#4099)
for Babel loose mode.
This commit is contained in:
parent
469e6b26f5
commit
7a9b4c5787
@ -460,8 +460,12 @@ export const ReactEditor = {
|
||||
range.setEnd(nearestNode, nearestOffset)
|
||||
const contents = range.cloneContents()
|
||||
const removals = [
|
||||
...contents.querySelectorAll('[data-slate-zero-width]'),
|
||||
...contents.querySelectorAll('[contenteditable=false]'),
|
||||
...Array.prototype.slice.call(
|
||||
contents.querySelectorAll('[data-slate-zero-width]')
|
||||
),
|
||||
...Array.prototype.slice.call(
|
||||
contents.querySelectorAll('[contenteditable=false]')
|
||||
),
|
||||
]
|
||||
|
||||
removals.forEach(el => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user