Skip to content

Commit

Permalink
Merge pull request #13 from deiga/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
artf authored Aug 5, 2022
2 parents c71abd3 + 84774db commit 62f3595
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ This plugin adds the possibility to embed custom code

## Usage


```html
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet"/>
<script src="https://unpkg.com/grapesjs"></script>
Expand All @@ -75,6 +76,26 @@ This plugin adds the possibility to embed custom code
</script>
```

```jsx
import GrapesJS from 'grapesjs';
import customCodePlugin from 'grapesjs-custom-code';

...

GrapesJS.init({
container : '#gjs',
...
plugins: [
customCodePlugin
],
pluginsOpts: {
[customCodePlugin]: {
// options
}
}
});
```




Expand Down

0 comments on commit 62f3595

Please sign in to comment.