From 84774db950b92d5782296075c4b694d1e44490a6 Mon Sep 17 00:00:00 2001 From: Timo Sand Date: Wed, 3 Feb 2021 16:26:00 +0100 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 + } + } +}); +``` +