Skip to content

Commit

Permalink
New version 1.0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Jan 30, 2025
1 parent afb8d28 commit aa166d7
Show file tree
Hide file tree
Showing 6 changed files with 1,171 additions and 1,286 deletions.
21 changes: 12 additions & 9 deletions examples/use-esm-build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ Without webpack, you can use the ESM build of Jodit by importing it directly int

```html
<script type="importmap">
{
"imports": {
"autobind-decorator": "https://cdn.jsdelivr.net/npm/[email protected]/+esm",
"jodit": "/node_modules/jodit/esm/index.js"
}
}
{
"imports": {
"autobind-decorator": "https://cdn.jsdelivr.net/npm/[email protected]/+esm",
"jodit-pro": "https://cdn.jsdelivr.net/npm/[email protected]/esm/index.js",
"jodit": "https://cdn.jsdelivr.net/npm/[email protected]/esm/index.js",
"jodit/": "https://cdn.jsdelivr.net/npm/[email protected]/esm/"
}
}
</script>
<link rel="stylesheet" href="/node_modules/jodit/es2021.en/jodit.fat.min.css">
<script type="module">
import {Jodit} from 'jodit';
const editor = new Jodit('#root');
import { Jodit } from 'jodit';
//import { Jodit } from 'jodit-pro';
const editor = Jodit.make('#editor');
</script>
```
Loading

0 comments on commit aa166d7

Please sign in to comment.