-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running unlayer.init in React #385
Comments
As working in React, unlayer means => emailEditorRef.current.editor (ref hook)
|
That approach doesn't work for calling the init function. The init function doesn't exist on emailEditorRef.current.editor. I need to call init to set up things like mergeTags, how do I do this in React? |
For merge tag you can either hardcode it inside Editor components in options or while initializing the editor connect it with some kind of dataset to load it. |
Hi everyone, where do i run the unlayer.init method.
I am trying to get the editor to load from a template hence I need this setup.
The text was updated successfully, but these errors were encountered: