add bold commands

This commit is contained in:
Philipp Kühn
2020-11-17 21:47:39 +01:00
parent 0354f02842
commit 3349ebf081
13 changed files with 30 additions and 18 deletions

View File

@@ -14,7 +14,7 @@ const MenuBar = () => {
</button>
<button
className={`${editor.isActive('bold') ? 'is-active' : ''}`}
onClick={() => editor.chain().focus().bold().run()}
onClick={() => editor.chain().focus().toggleBold().run()}
>
Bold
</button>