From 78bca9c5639178d66d8eed0d7476a3b88be5c818 Mon Sep 17 00:00:00 2001 From: Bob Ippolito Date: Fri, 29 Mar 2024 14:26:50 -0700 Subject: [PATCH] Update stackblitz iframes to use ctl=1 to prevent focus stealing --- .../lexical-website/docs/getting-started/creating-plugin.md | 2 +- .../lexical-website/docs/getting-started/quick-start.md | 2 +- packages/lexical-website/docs/getting-started/react.md | 2 +- .../src/components/HomepageExamples/index.js | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/lexical-website/docs/getting-started/creating-plugin.md b/packages/lexical-website/docs/getting-started/creating-plugin.md index d583296f6706..8b4ee9abbe09 100644 --- a/packages/lexical-website/docs/getting-started/creating-plugin.md +++ b/packages/lexical-website/docs/getting-started/creating-plugin.md @@ -183,4 +183,4 @@ mergeRegister( ); ``` - + diff --git a/packages/lexical-website/docs/getting-started/quick-start.md b/packages/lexical-website/docs/getting-started/quick-start.md index 2d7624f6a17b..3275560dfc2d 100644 --- a/packages/lexical-website/docs/getting-started/quick-start.md +++ b/packages/lexical-website/docs/getting-started/quick-start.md @@ -128,4 +128,4 @@ editor.registerUpdateListener(({editorState}) => { Here we have simplest Lexical setup in rich text configuration (`@lexical/rich-text`) with history (`@lexical/history`) and accessibility (`@lexical/dragon`) features enabled. - + diff --git a/packages/lexical-website/docs/getting-started/react.md b/packages/lexical-website/docs/getting-started/react.md index e9ec6ad64cbc..f0956dd0caf7 100644 --- a/packages/lexical-website/docs/getting-started/react.md +++ b/packages/lexical-website/docs/getting-started/react.md @@ -81,7 +81,7 @@ Below you can find an example of the integration from the previous chapter that However no UI can be created w/o CSS and Lexical is not an exception here. Pay attention to `ExampleTheme.ts` and how it's used in this example, with corresponding styles defined in `styles.css`. - + ## Saving Lexical State diff --git a/packages/lexical-website/src/components/HomepageExamples/index.js b/packages/lexical-website/src/components/HomepageExamples/index.js index 2a82595ec05e..04cac43d846c 100644 --- a/packages/lexical-website/src/components/HomepageExamples/index.js +++ b/packages/lexical-website/src/components/HomepageExamples/index.js @@ -23,7 +23,7 @@ const EXAMPLES = [ ), id: 'example-feature-1', label: 'Simple Setup', - src: 'https://stackblitz.com/github/facebook/lexical/tree/main/examples/vanilla-js?embed=1&file=src%2Fmain.ts&terminalHeight=0', + src: 'https://stackblitz.com/github/facebook/lexical/tree/main/examples/vanilla-js?embed=1&file=src%2Fmain.ts&terminalHeight=0&ctl=1', }, { content: ( @@ -38,7 +38,7 @@ const EXAMPLES = [ ), id: 'example-feature-2', label: 'Powerful Features', - src: 'https://stackblitz.com/github/facebook/lexical/tree/main/examples/react-rich?embed=1&file=src%2FApp.tsx&terminalHeight=0', + src: 'https://stackblitz.com/github/facebook/lexical/tree/main/examples/react-rich?embed=1&file=src%2FApp.tsx&terminalHeight=0&ctl=1', }, { content: ( @@ -50,7 +50,7 @@ const EXAMPLES = [ ), id: 'example-feature-3', label: 'Built to Extend', - src: 'https://stackblitz.com/github/StyleT/lexical/tree/feature/vanilla-js-plugin-example/examples/vanilla-js-plugin?embed=1&file=src%2Femoji-plugin%2FEmojiPlugin.ts&terminalHeight=0', + src: 'https://stackblitz.com/github/facebook/lexical/tree/feature/vanilla-js-plugin-example/examples/vanilla-js-plugin?embed=1&file=src%2Femoji-plugin%2FEmojiPlugin.ts&terminalHeight=0&ctl=1', }, ];