Closed rexkenley closed 4 years ago
registerTool
is only available inside the customJS
. You can pass customJS
in the options
prop to the React component. Check the docs here: https://docs.unlayer.com/docs/custom-js-css#section-custom-javascript
<EmailEditor
options={{ customJS: "console.log('I am custom JS!', unlayer.registerTool);" }}
/>
So this is not available, since customJS is a premium feature that requires purchase. Is that correct?
@rexkenley the free plan allows 1 custom tool, but not the JavaScript one. You can create it using our dashboard GUI. And then pass in the projectId
to options.
Thank you.
Hi
I tried to create some custom tools and noticed that the react component object does not have registerTools.
Will this be added to the component?