You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importgrapesjs,{Editor}from'grapesjs';importGjsEditorfrom'@grapesjs/react';importbasicBlocksfrom'grapesjs-blocks-basic';importpluginCountdownfrom'grapesjs-component-countdown';importwebpagePresetfrom'grapesjs-preset-webpage';importnewsPresetfrom'grapesjs-preset-newsletter';importgradiantfrom'grapesjs-style-gradient';importnavbarfrom'grapesjs-navbar';exportdefaultfunctionDefaultEditor(){constonEditor=(editor: Editor)=>{console.log('Editor loaded',{ editor });};return(<GjsEditor// Pass the core GrapesJS library to the wrapper (required).// You can also pass the CDN url (eg. "https://unpkg.com/grapesjs")grapesjs={grapesjs}// Load the GrapesJS CSS file asynchronously from URL.// This is an optional prop, you can always import the CSS directly in your JS if you wish.grapesjsCss="https://unpkg.com/grapesjs/dist/css/grapes.min.css"// GrapesJS init optionsplugins={[basicBlocks,pluginCountdown,navbar,webpagePreset,newsPreset,gradiant,]}options={{height: '100vh',storageManager: false,}}onEditor={onEditor}/>);}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
these bellow don't have mordern js import support, and I am using typescript and react how can I import these plugins?
https://github.com/GrapesJS/blocks-flexbox
https://github.com/GrapesJS/components-lory
https://github.com/GrapesJS/components-tabs
currently I am importing other like this
Beta Was this translation helpful? Give feedback.
All reactions