From 6b06eaa28939039e0bdc110becb520dacb665358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 13 Nov 2020 11:53:53 +0100 Subject: [PATCH] fix text --- docs/src/docPages/guide/create-your-editor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/docPages/guide/create-your-editor.md b/docs/src/docPages/guide/create-your-editor.md index 2d270c5c..6987443c 100644 --- a/docs/src/docPages/guide/create-your-editor.md +++ b/docs/src/docPages/guide/create-your-editor.md @@ -10,7 +10,7 @@ Let’s start to add your first button to the editor. Once initiated the editor -To mark selected text bold we can use `this.editor.bold`. There a ton of other commands and you can even chain them to do multiple things at once. +To mark selected text bold we can use `editor.commands.bold()`. There a ton of other commands and you can even chain them to do multiple things at once. You might wonder what features tiptap supports out of the box. In the above example we added the `@tiptap/starter-kit`. That already includes support for paragraphs, text, bold, italic, inline code and code blocks. There are a lot more, but you have to explicitly import them. You will learn how that works in the next example.