From 68e39215bb02b9a7313bee3cb6af5e48cd031309 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Mon, 12 Apr 2021 14:14:31 -0400 Subject: [PATCH] Update 04-transforms.md --- docs/concepts/04-transforms.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/concepts/04-transforms.md b/docs/concepts/04-transforms.md index 86a5e0b00..01834f23d 100644 --- a/docs/concepts/04-transforms.md +++ b/docs/concepts/04-transforms.md @@ -162,8 +162,9 @@ Instead, you can take advantage of the `at` and `match` options to match all of Transforms.moveNodes(editor, { // This will again be expanded to a range of the entire node at `[2]`. at: [2], - // Nodes with a path of 1 longer are the children. + // Matches nodes with a longer path, which are the children. match: (node, path) => path.length === 2, + to: [5], }) ```