mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-21 13:51:59 +02:00
This reverts commit 0ca31e74985cc15e81f941a34c00c10b88f2ca76.
This commit is contained in:
parent
4b2d4de4bf
commit
cc9cba017a
@ -1,5 +0,0 @@
|
||||
---
|
||||
'slate': patch
|
||||
---
|
||||
|
||||
Warn when normalization removes node
|
@ -227,14 +227,6 @@ export const createEditor = (): Editor => {
|
||||
// other inline nodes, or parent blocks that only contain inlines and
|
||||
// text.
|
||||
if (isInlineOrText !== shouldHaveInlines) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn(
|
||||
`Removing ${
|
||||
isInlineOrText ? 'inline' : 'block'
|
||||
} node at path ${path.concat(n)} because parent expects ${
|
||||
shouldHaveInlines ? 'inline' : 'block'
|
||||
} children`
|
||||
)
|
||||
Transforms.removeNodes(editor, { at: path.concat(n), voids: true })
|
||||
n--
|
||||
} else if (Element.isElement(child)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user