add highlight option for demos
This commit is contained in:
@@ -6,7 +6,7 @@ In its basic version tiptap comes very raw. There is no menu, no buttons, no sty
|
||||
|
||||
Let’s start to add your first button to the editor.
|
||||
|
||||
<demo name="SimpleMenuBar" />
|
||||
<demo name="SimpleMenuBar" highlight="5-11" />
|
||||
|
||||
Once initiated the editor has a powerful API. So called commands allow you to modify the text. In this example `this.editor.commands.bold` marks the selected text bold. There a ton of other commands (see the [list of available commands](/commands/)) and you can even chain them to do multiple things at once.
|
||||
|
||||
@@ -18,7 +18,7 @@ You are free to choose which parts of tiptap you want to use. Tiptap has support
|
||||
|
||||
Note that `Document`, `Paragraph` and `Text` are required. Otherwise you won’t be able to add any plain text.
|
||||
|
||||
<demo name="ExtensionConfiguration" />
|
||||
<demo name="ExtensionConfiguration" highlight="10-13,30-33" />
|
||||
|
||||
That’s also the place where you can register custom extensions, which you or someone else built for tiptap.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user