diff --git a/README.md b/README.md index 90a7a0a..e378310 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ This plugin adds the possibility to embed custom code ## Usage + ```html @@ -75,6 +76,26 @@ This plugin adds the possibility to embed custom code ``` +```jsx +import GrapesJS from 'grapesjs'; +import customCodePlugin from 'grapesjs-custom-code'; + +... + +GrapesJS.init({ + container : '#gjs', + ... + plugins: [ + customCodePlugin + ], + pluginsOpts: { + [customCodePlugin]: { + // options + } + } +}); +``` +