Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Nov 6, 2024
1 parent d2e7801 commit 93b4aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/dialog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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!');
Expand Down

0 comments on commit 93b4aa2

Please sign in to comment.