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 ||