1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-17 04:34:00 +02:00

Add way to prevent data loss in normalizeNode (#5878)

* fix(docs): Consider passed options when overriding normalizeNode

* feat: Allow to prevent data-loss on normalizeNode

When overriding normalizeNode, you can specify a `wrapperElement`
that is used to wrap text & inline nodes which would otherwise be
deleted in the normalization path if they are not allowed.

* changeset
This commit is contained in:
Alex
2025-05-24 22:53:02 +02:00
committed by GitHub
parent ffe3f8c129
commit 11b957a441
11 changed files with 128 additions and 16 deletions

View File

@@ -0,0 +1,5 @@
---
'slate': minor
---
Allow to prevent data-loss in normalizeNode