-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,17 @@ This example demonstrates how to use the ESM build of Jodit. | |
Without webpack, you can use the ESM build of Jodit by importing it directly into your HTML file. | ||
|
||
```html | ||
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"autobind-decorator": "https://cdn.jsdelivr.net/npm/[email protected]/+esm", | ||
"jodit": "/node_modules/jodit/esm/index.js" | ||
} | ||
} | ||
</script> | ||
<link rel="stylesheet" href="/node_modules/jodit/es2021.en/jodit.fat.min.css"> | ||
<script type="module"> | ||
import { Jodit } from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/jodit.esm.min.js'; | ||
const editor = new Jodit.default('#editor'); | ||
import {Jodit} from 'jodit'; | ||
const editor = new Jodit('#root'); | ||
</script> | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters