Skip to content

Commit

Permalink
New version 1.0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed May 10, 2024
1 parent 49599ef commit 1d62c53
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
14 changes: 11 additions & 3 deletions examples/use-esm-build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
```
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jodit-examples",
"version": "1.0.15",
"version": "1.0.16",
"description": "Jodit Examples",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 1d62c53

Please sign in to comment.