Error: src must be a string or an object describing the source

This issue has been tracked since 2022-01-05.

I am getting the following error after drag and drop of my custom tool: Error: src must be a string or an object describing the source

code:

<EmailEditor projectId={55576} ref={this.emailEditorRef} onLoad={() => setTimeout(() => this.onLoad(), 0)} options={{ customJS: [
unlayer.registerTool({
name: 'Questions',
label: 'Question',
icon: 'fa-question',
supportedDisplayModes: ['web', 'email'],
options: {
questions: {
title: 'Choose a question',
options:{
questions: {
name: 'questions',
label: 'Question list',
widget: 'dropdown',
},
}
},
},
values: {},
tools: {
'custom#questions': {
properties: {
questions: {
editor: {
data: {
options: [
{ label: 'test 1', value: 'a' },
{ label: 'test 2', value: 'b' },
{ label: 'test 3', value: 'c' },
{ label: 'test 4', value: 'd' },
],
},
},
},
},
},
},
});
], }} onReady={this.onReady} appearance={{ theme: 'dark', }} />

IamNotHuman wrote this answer on 2022-01-06

This happens if you do not include the rerender property when creating the custom tool

talovicnedim wrote this answer on 2022-04-29

@IamNotHuman
could you please write how did you solve this? I'm facing the same issue. Thanks in advance.

More Details About Repo
Owner Name unlayer
Repo Name react-email-editor
Full Name unlayer/react-email-editor
Language JavaScript
Created Date 2017-10-01
Updated Date 2022-12-05
Star Count 3598
Watcher Count 48
Fork Count 627
Issue Count 163

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date