From ab213da7a27c7daa1c836207fec4b9d1c562d74c Mon Sep 17 00:00:00 2001 From: Gian Espinosa Date: Thu, 1 Feb 2024 11:45:53 +0800 Subject: [PATCH] revise --- src/shell/components/FieldTypeTinyMCE/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/components/FieldTypeTinyMCE/index.tsx b/src/shell/components/FieldTypeTinyMCE/index.tsx index 798231d68d..7585851ed8 100644 --- a/src/shell/components/FieldTypeTinyMCE/index.tsx +++ b/src/shell/components/FieldTypeTinyMCE/index.tsx @@ -312,7 +312,7 @@ export const FieldTypeTinyMCE = React.memo(function FieldTypeTinyMCE({ setIsSkinLoaded(true); }); - editor.on("keydown", function (evt: any) { + editor.on("keydown", (evt: any) => { if (evt.key === "Escape") { if (editor.plugins.fullscreen.isFullscreen()) { editor.execCommand("mceFullScreen");