You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We support most of the common keyboard shortcuts users would expect to find in text editors thanks to [Draft.js key bindings](https://facebook.github.io/draft-js/docs/advanced-topics-key-bindings.html).
9
+
10
+
Here are the most important shortcuts:
11
+
12
+
|Shortcut|Function|
13
+
|--------|--------|
14
+
|Cmd + B | Bolden text (if enabled) |
15
+
|Cmd + I | Italicise text (if enabled) |
16
+
|Cmd + U | Underline text (if enabled) |
17
+
|Cmd + J | Format as code (if enabled) |
18
+
|Cmd + Z | Undo |
19
+
|Cmd + Maj + Z | Redo |
20
+
|Cmd + Left | Move selection to start of block |
21
+
|Cmd + Right | Move selection to end of block |
22
+
|Cmd + Tab|Increase indentation of list items|
23
+
|Cmd + Maj + Tab|Decrease indentation of list items|
24
+
25
+
Other shortcuts we would like to support in the future:
26
+
27
+
|Shortcut|Function|
28
+
|--------|--------|
29
+
|Cmd + Option + 1/2/3/4/5/6 | Format as heading level |
30
+
|Cmd + Option + 0 | Format as paragraph |
31
+
|Cmd + K | Create a link (if enabled) |
32
+
33
+
### Expected behavior
34
+
35
+
### Unsupported scenarios
36
+
37
+
- Nesting `ol` inside `ul` or the other way around.
38
+
39
+
## R&D notes
40
+
41
+
### Other Draft.js editors
42
+
43
+
> Full list on https://github.com/nikgraf/awesome-draft-js
44
+
45
+
Other approaches:
46
+
47
+
-https://github.com/ianstormtaylor/slate
48
+
-http://quilljs.com/
49
+
50
+
### Other Wagtail-integrated editors to learn from.
51
+
52
+
Things to borrow: keyboard shortcuts, Wagtail integration mechanism,
0 commit comments