Commit 16cfa6d
committed
Fix pressing the enter key removes heading content
`div` is not an allowed child element of a `hX` tag,
this leads to invalid behavior on firefox so we need to use the `span` tag
as the NodeView content container.
Also using `tabindex=-1` on the NodeView will trigger weird behavior when
clicking inside the heading and pressing the enter key. It will split the node
but also copy the heading anchor link of the NodeView.
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>1 parent 0e4d145 commit 16cfa6d
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
0 commit comments