React-draft-wysiwyg: Image upload enabled not working

Created on 6 Apr 2018  路  1Comment  路  Source: jpuri/react-draft-wysiwyg

Hi there,
The File upload option is missing for the image. Screenshot attached.

screen shot 2018-04-06 at 3 24 13 pm

I've enabled it in my code though:

<Editor
        wrapperClassName="editorWrapper"
        toolbarClassName="toolbarWrapper"
        onEditorStateChange={this.onEditorStateChange}
        toolbar={{
          options: ['inline', 'blockType', 'fontSize', 'list', 'textAlign', 'image', 'history'],
          image: {
            urlEnabled: true,
            uploadEnabled: true,
            uploadCallback: this.uploadFile
          }
        }}
      />

Am I missing something?
Thanks for this awesome component.

Most helpful comment

Sorry, figured out the problem. Hadn't written the uploadFile callback function.

>All comments

Sorry, figured out the problem. Hadn't written the uploadFile callback function.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sontek picture sontek  路  4Comments

volkandkaya picture volkandkaya  路  3Comments

Fireprufe15 picture Fireprufe15  路  4Comments

trongbang86 picture trongbang86  路  3Comments

ananddodia picture ananddodia  路  4Comments