From 869d1240d3c697e2437ad4e87a039f48c7af1e52 Mon Sep 17 00:00:00 2001 From: Ravi Lamkoti <44892121+RavenColEvol@users.noreply.github.com> Date: Thu, 25 May 2023 23:25:24 +0530 Subject: [PATCH] chore: rename imageElmnts to imageElements in 04-transforms.md (#5431) It will make code more readable and character difference is very less so it's worth changing. --- docs/concepts/04-transforms.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/concepts/04-transforms.md b/docs/concepts/04-transforms.md index c7fb900d9..df2054e20 100644 --- a/docs/concepts/04-transforms.md +++ b/docs/concepts/04-transforms.md @@ -22,12 +22,12 @@ Non-standard operations (or debugging/tracing which Nodes will be affected by a For example, to replace all image elements with their alt text: ```javascript -const imageElmnts = Editor.nodes(editor, { +const imageElements = Editor.nodes(editor, { at: [], // Path of Editor match: (node, path) => 'image' === node.type, // mode defaults to "all", so this also searches the Editor's children }) -for (const nodeEntry of imageElmnts) { +for (const nodeEntry of imageElements) { const altText = nodeEntry[0].alt || nodeEntry[0].title ||