From ca81e2b50b673552f22adbec63b59c45ce2a8187 Mon Sep 17 00:00:00 2001 From: Lorenzo Paderi Date: Tue, 18 Jun 2024 12:46:17 +0200 Subject: [PATCH] Added use statement for LoadEditor class Signed-off-by: Lorenzo Paderi --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 262671e994b..09de77747ca 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,10 @@ Or you might set the `CYPRESS_baseUrl` environment variable for a custom nextclo In order to load the editor in your app, you'll need to dispatch an event. ```php +use OCA\Text\Event\LoadEditor; + +// ... + if (class_exists(LoadEditor::class)) { $this->eventDispatcher->dispatchTyped(new LoadEditor()); }