react-email-editor icon indicating copy to clipboard operation
react-email-editor copied to clipboard

Pass instance to parent callback, fixes #22, fixes #100

Open tsrahm opened this issue 3 years ago • 2 comments

By passing the instance of the EmailEditor to the parent in the loadEditor function, the parent has access to the instance when the parent's onLoad function is fired.

tsrahm avatar Jun 17 '21 17:06 tsrahm

I don't like the idea of using setInterval to delay the invocation of the loadDesign method. By passing the editor instance to the callback, it is available immediately.

tsrahm avatar Aug 09 '21 20:08 tsrahm

Thanks for the explanation

OlivierJM avatar Aug 09 '21 23:08 OlivierJM