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

Error: id or className must be provided.

Open rafaelcapucho opened this issue 6 years ago • 12 comments

Hi, I'm trying to run the compiled version but it is failing,

image

Thank you.

rafaelcapucho avatar Sep 23 '19 11:09 rafaelcapucho

I also had a similar error when using with Vue. I guess due to their muti instance function, Do not know he has overcome it yet?

iamjack8888 avatar Apr 30 '20 14:04 iamjack8888

When initializing the component for the first time, it succeeds. but if I clicked to another menu and came back, I got an error like this. I had to press f5 for it to work

image

iamjack8888 avatar Apr 30 '20 14:04 iamjack8888

i have same problem, i can't find solutions for that

image

diegocabrito avatar May 04 '20 23:05 diegocabrito

Anyone?

diegocabrito avatar May 05 '20 19:05 diegocabrito

I am still having problems with it and haven't found an alternative

iamjack8888 avatar May 06 '20 00:05 iamjack8888

Hi guy . Try adding a div tag around it

image

iamjack8888 avatar May 06 '20 01:05 iamjack8888

I try, same problem. My head pain.

diegocabrito avatar May 07 '20 13:05 diegocabrito

has anyone find a fix yet?

jatin77 avatar May 10 '20 06:05 jatin77

So the deal is you just have to giv an id to the wrapper div around <EmailEditor/> And make sure this code in node-modules gets the same id--> _this.editor = unlayer.createEditor(_extends({}, options, { id:"email-container", displayMode: 'email', source: { name: pkg.name, version: pkg.version } }));

jatin77 avatar May 10 '20 06:05 jatin77

change library version to 0.8.2 in your package.json

joshirj21 avatar May 10 '20 13:05 joshirj21

change library version to 0.8.2 in your package.json

I'm testing with version 1.0.0. Finding bugs, but for now it's function.

diegocabrito avatar May 11 '20 16:05 diegocabrito

Bro, vuelve a la versión 0.7.1 funciona bien

carbler avatar Jun 22 '21 21:06 carbler