mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 10:51:44 +02:00
Docs: Add that Edge does not support CTRL+...
(#1585)
The CTRL-` example fails in Edge due to lack of support for CTRL+... events. Reference: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/742263/. Added a note so other Edge users won't be tripped up by the walkthrough.
This commit is contained in:
committed by
Ian Storm Taylor
parent
0ef7b116f1
commit
85b4f2f495
@@ -158,6 +158,8 @@ class App extends React.Component {
|
||||
|
||||
Now, if you press `control-\`` the block your cursor is in should turn into a code block! Magic!
|
||||
|
||||
*Note: The Edge browser does not currently support `control-...` key events (see [issue](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/742263/)), so this example won't work on it.*
|
||||
|
||||
But we forgot one thing. When you hit `control-\`` again, it should change the code block back into a paragraph. To do that, we'll need to add a bit of logic to change the type we set based on whether any of the currently selected blocks are already a code block:
|
||||
|
||||
```js
|
||||
|
Reference in New Issue
Block a user