Open sahar922 opened 6 years ago
Hey all :) I'm using latest react-draft-wysiwyg version, according to the official docs, if the suggestions don't have "url" property, it'll take the action only but in my case, it adds a link to localhost as well.
my editor config :
<Editor editorState={editorState} editorClassName="editor-class" onEditorStateChange={this.onEditorStateChange} mention={{ separator: ' ', trigger: '{', suggestions: [ { text: 'Name', value: 'userName}' }, { text: 'Email', value: 'email}' }, { text: 'Company Name', value: 'companyName}'} ], }} toolbar={Klass.toolbar} />
onEditorStateChange :
onEditorStateChange(editorState){ this.setState( { editorState }); }
what am I doing wrong?
Thanks!
@jpuri any ideas? thanks a lot
@jpuri can you take a look, please?
Hey all :) I'm using latest react-draft-wysiwyg version, according to the official docs, if the suggestions don't have "url" property, it'll take the action only but in my case, it adds a link to localhost as well.
my editor config :
onEditorStateChange :
what am I doing wrong?
Thanks!