From c77cd73889d7981f0ed0443431771c9637684da4 Mon Sep 17 00:00:00 2001 From: Yashita Date: Wed, 15 Feb 2023 15:18:34 +0530 Subject: [PATCH 1/2] Add spellcheck="false" to preview iframe --- src/OnboardingSPA/components/LivePreview/BlockPreview/auto.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OnboardingSPA/components/LivePreview/BlockPreview/auto.js b/src/OnboardingSPA/components/LivePreview/BlockPreview/auto.js index 24e6f15bf..28a318bb4 100644 --- a/src/OnboardingSPA/components/LivePreview/BlockPreview/auto.js +++ b/src/OnboardingSPA/components/LivePreview/BlockPreview/auto.js @@ -99,6 +99,7 @@ function AutoBlockPreview( { ? __experimentalMinHeight / scale : __experimentalMinHeight, } } + spellcheck="false" > { contentResizeListener } { From 3f792fe32125e181557bf0980bcc39872bebc6d1 Mon Sep 17 00:00:00 2001 From: Yashita Date: Thu, 16 Feb 2023 18:36:22 +0530 Subject: [PATCH 2/2] Update auto.js --- src/OnboardingSPA/components/LivePreview/BlockPreview/auto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OnboardingSPA/components/LivePreview/BlockPreview/auto.js b/src/OnboardingSPA/components/LivePreview/BlockPreview/auto.js index 28a318bb4..f522e43dc 100644 --- a/src/OnboardingSPA/components/LivePreview/BlockPreview/auto.js +++ b/src/OnboardingSPA/components/LivePreview/BlockPreview/auto.js @@ -83,6 +83,7 @@ function AutoBlockPreview( { bodyElement.style.boxSizing = 'border-box'; bodyElement.style.position = 'absolute'; bodyElement.style.width = '100%'; + bodyElement.spellcheck = 0; }, [] ) } aria-hidden tabIndex={ -1 } @@ -99,7 +100,6 @@ function AutoBlockPreview( { ? __experimentalMinHeight / scale : __experimentalMinHeight, } } - spellcheck="false" > { contentResizeListener } {