We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c71abd3 + 84774db commit 62f3595Copy full SHA for 62f3595
README.md
@@ -54,6 +54,7 @@ This plugin adds the possibility to embed custom code
54
55
## Usage
56
57
+
58
```html
59
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet"/>
60
<script src="https://unpkg.com/grapesjs"></script>
@@ -75,6 +76,26 @@ This plugin adds the possibility to embed custom code
75
76
</script>
77
```
78
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
99
100
101
0 commit comments