From 93b4aa27676f4bd102bf4f6fd42a35da67b54b29 Mon Sep 17 00:00:00 2001 From: xdan Date: Thu, 7 Nov 2024 00:36:04 +0300 Subject: [PATCH] Update docs --- src/modules/dialog/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/dialog/README.md b/src/modules/dialog/README.md index 5a67c928a..b5ce98b1d 100644 --- a/src/modules/dialog/README.md +++ b/src/modules/dialog/README.md @@ -58,7 +58,7 @@ const dialog = new Jodit.modules.Dialog({ // or -const editor = new Jodit('#editor', { +const editor = Jodit.make('#editor', { theme: 'dark' }); const dialog = editor.dlg(); @@ -72,7 +72,7 @@ Thanks to the trait mechanism, there's no need to create utility dialogs like Al Simply calling the appropriate methods on the [[Jodit]] instance is sufficient. The dialog will automatically adopt the editor's theme and language settings. ```js -const editor = new Jodit('#editor', { +const editor = Jodit.make('#editor', { theme: 'dark' }); editor.alert('Hello world!');