docs: fix focus demo options

This commit is contained in:
Philipp Kühn 2021-05-12 21:12:54 +02:00
parent cea4a3f50d
commit 7e174455d7

View File

@ -33,7 +33,7 @@ export default {
Text,
Focus.configure({
className: 'has-focus',
nested: true,
mode: 'all',
}),
Code,
BulletList,
@ -45,7 +45,7 @@ export default {
The focus extension adds a class to the focused node only. That enables you to add a custom styling to just that node. By default, itll add <code>.has-focus</code>, even to nested nodes.
</p>
<ul>
<li>Nested elements (like this list item) will be focused with the default setting of <code>nested: true</code>.</li>
<li>Nested elements (like this list item) will be focused with the default setting of <code>mode: all</code>.</li>
<li>Otherwise the whole list will get the focus class, even when just a single list item is selected.</li>
</ul>
`,