Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 62f3595

Browse files
authoredAug 5, 2022
Merge pull request #13 from deiga/patch-1
Update README.md
2 parents c71abd3 + 84774db commit 62f3595

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
 

‎README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ This plugin adds the possibility to embed custom code
5454

5555
## Usage
5656

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

79+
```jsx
80+
import GrapesJS from 'grapesjs';
81+
import customCodePlugin from 'grapesjs-custom-code';
82+
83+
...
84+
85+
GrapesJS.init({
86+
container : '#gjs',
87+
...
88+
plugins: [
89+
customCodePlugin
90+
],
91+
pluginsOpts: {
92+
[customCodePlugin]: {
93+
// options
94+
}
95+
}
96+
});
97+
```
98+
7899

79100

80101

0 commit comments

Comments
 (0)
Please sign in to comment.