1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-21 06:31:28 +02:00

Fix normalizeNode to keep text/inline nodes when removing blocks (#5768)

* fix: fix data loss in base `normalizeData` if no blocks allowed

Use `unwrapNodes` instead of `removeNodes` to
convert block to inline/text nodes.

* changeset
This commit is contained in:
Alex
2024-11-23 01:01:11 +01:00
committed by GitHub
parent 90fbcdeff5
commit 4bc552f71f
4 changed files with 12 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
'slate': patch
---
Keep data in normalization when blocks are not allowed