mirror of
https://github.com/codex-team/editor.js
synced 2024-06-16 20:55:05 +02:00
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:
parent
1320b047a2
commit
b9a4c25120
|
@ -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',
|
||||
]
|
||||
},
|
||||
},
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue