From b9a4c25120a334dc9a4dd2b6734397c37df9f36d Mon Sep 17 00:00:00 2001 From: Reindert <16726304+reindert-vetter@users.noreply.github.com> Date: Tue, 2 Apr 2024 01:17:33 +0200 Subject: [PATCH 1/2] Update tools-inline.md It was clear to me that I must first register the online tool as a tool. --- docs/tools-inline.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/tools-inline.md b/docs/tools-inline.md index 604a5e4c8..6cc6064c5 100644 --- a/docs/tools-inline.md +++ b/docs/tools-inline.md @@ -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', + ] + }, + }, +} +``` From 7c3ef7f3ad370b5b5566eabfe1e5168624399b1d Mon Sep 17 00:00:00 2001 From: Reindert <16726304+reindert-vetter@users.noreply.github.com> Date: Tue, 2 Apr 2024 10:08:53 +0200 Subject: [PATCH 2/2] Update tools-inline.md --- docs/tools-inline.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tools-inline.md b/docs/tools-inline.md index 6cc6064c5..83826e231 100644 --- a/docs/tools-inline.md +++ b/docs/tools-inline.md @@ -149,7 +149,7 @@ export default class BoldInlineTool implements InlineTool { ### 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. +To use the tool, you must register it in your config object under `tools`. Then you can use it in inlineToolbar. ```json {