react-email-editor
react-email-editor copied to clipboard
unlayer not defined or Cannot read property 'registerTool' of undefined

@manjuadoor registerTool is only avaiable inside customJS. You can check the notice on top here: https://docs.unlayer.com/docs/create-custom-tool
@manjuadoor
Then how to use custom JS in ReactJS from the local project (made in NextJS)?
@getpiyushfar
You need to compile and serve your .jsx as .js at a public path (you can use the entry config if you're using Webpack) and pass that path to Unlayer. From inside that file, you can call window.unlayer.registerPropertyEditor. As Adeel said, it's only available inside this context.