mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 07:35:48 +01:00
Merge 9b6b32925e into 530ec56bb8
This commit is contained in:
commit
63cf6b65cf
1 changed files with 19 additions and 0 deletions
|
|
@ -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 inlineToolbar.
|
||||
|
||||
```json
|
||||
{
|
||||
inlineToolbar: true,
|
||||
tools: {
|
||||
bold: BoldInlineTool,
|
||||
paragraph: {
|
||||
class: Paragraph,
|
||||
inlineToolbar: [
|
||||
'bold',
|
||||
]
|
||||
},
|
||||
},
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue