Update tools-inline.md

It was clear to me that I must first register the online tool as a tool.
This commit is contained in:
Reindert 2024-04-02 01:17:33 +02:00 committed by GitHub
parent 1320b047a2
commit b9a4c25120
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -146,3 +146,22 @@ export default class BoldInlineTool implements InlineTool {
// ... other methods
}
```
### Using the inline tool
To use the tool, you must register it in your config object under `tools`. Then you can use it in per block type.
```json
{
inlineToolbar: true,
tools: {
bold: BoldInlineTool,
paragraph: {
class: Paragraph,
inlineToolbar: [
'bold',
]
},
},
}
```