From 9e27aeb2884217707b07ba362510c1727ef7b64a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20G=C3=B3recki?= Date: Fri, 16 Feb 2024 17:59:06 +0100 Subject: [PATCH] Add events section --- docs/usage.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/usage.md b/docs/usage.md index f1fb4dd98..9f70ddf8e 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -84,7 +84,14 @@ var editor2 = new EditorJS({ }) ``` +## Events +Events table for instance of EditorJS class. Can be used with `.on` function + +| Event name | Description | +| ------ | ---------- | +| `block changed` | Event fired when anything change in blocks context | +| `block hovered` | Event fired when hover on block | ## Placeholder