From 4b4db176bc9a373a33f81f11c0e63dee74a25a20 Mon Sep 17 00:00:00 2001 From: Can Rau Date: Thu, 12 Oct 2023 08:48:11 -0500 Subject: [PATCH] docs: fix typo in decorators.md (#5113) --- examples/decorators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/decorators.md b/examples/decorators.md index ffdaab09131..1f182a18f16 100644 --- a/examples/decorators.md +++ b/examples/decorators.md @@ -71,7 +71,7 @@ function VideoPlugin(): ReactNode { // Similar with command listener, which returns unlisten callback const removeListener = editor.registerCommand( INSERT_VIDEO_COMMAND, - (payload) => { + (url) => { // Adding custom command that will be handled by this plugin editor.update(() => { $insertNodes([$createVideoNode(url)]);