Skip to content

Portal editor image drop zone broken in dataone theme #2782

@iannesbitt

Description

@iannesbitt

Describe the bug
The portal editor image drop zone in the default theme (https://search.dataone.org/edit/portals/[*]) is not working (neither click or drop functions produce any action). It does work on other themes (e.g. https://drp.dataone.org/edit/portals/drp-data).

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://search.dataone.org/edit/portals/rwsc

  2. Click on image upload icon (Image) in the text editor window

  3. Click on the drop zone or drag and drop an image:

    Image
  4. See error in console:

    ImageUploaderView could not be rendered, error message:  Error: No URL provided.
        Dropzone dropzone-amd-module.js:1078
        dropzone dropzone-amd-module.js:3216
        jQuery 2
            each
            each
        dropzone dropzone-amd-module.js:3215
        render ImageUploaderView.js:222
        addMdImage MarkdownEditorView.js:669
        render MarkdownEditorView.js:358
        n woofmark.min.js:2
    ImageUploaderView.js:404:19
        render https://search.dataone.org/js/views/ImageUploaderView.js?v=2.36.2:404
        addMdImage https://search.dataone.org/js/views/MarkdownEditorView.js?v=2.36.2:669
        render https://search.dataone.org/js/views/MarkdownEditorView.js?v=2.36.2:358
        n https://search.dataone.org/components/woofmark.min.js?v=2.36.2:2
    

Expected behavior
The file upload dialog should appear when clicked, and image upload should occur when dragged and dropped.

Screenshots
n/a

Desktop (please complete the following information):

  • OS: iOS
  • Browser: Firefox
  • Version: 144.0.2 (but confirmed to happen across browsers and versions)

Smartphone (please complete the following information):

  • Device: all
  • OS: all
  • Browser all
  • Version all

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions