question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dragging and dropping work on firefox but not on chrome

See original GitHub issue

Hello, I have the following single file component on top of which I drop an image: `<template> <editor :extensions="extensions"> <div slot="content" slot-scope="props">

Test Text

</div> </editor> </template>

<script> import { Editor } from 'tiptap' import { HardBreakNode, HeadingNode, ImageNode, BoldMark, CodeMark, ItalicMark, } from 'tiptap-extensions' </script>

export default { components: { ‘editor’: Editor, }, data() { return { extensions: [ new HardBreakNode(), new HeadingNode({ maxLevel: 3 }), new ImageNode(), new BoldMark(), new CodeMark(), new ItalicMark(), ] } } ` The dragging and dropping of an image works on firefox , but not on chrome.

On chrome I receive a Resource interpreted as Document but transferred with MIME type image/gif: "file:///home/mihaita/Pictures/giphy.gif". warning and then the browser proceeds to navigate to the dropped file file:///home/mihaita/Pictures/giphy.gif;

Any ideas what goes wrong?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
philippkuehncommented, Oct 1, 2018

This is fixed in tiptap-extensions 0.16.3

1reaction
philippkuehncommented, Sep 26, 2018

@childonline Yeah super strange. Didn’t find anything until yet. The demo page setup is indeed different because I don’t use the tiptap packages from npm. Instead I added some alias with webpack to grab these packages directly from the src folders of the repository. But I don’t think that’s what makes the difference.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dragAndDrop works in Firefox but not in Chrome
I can use either dragAndDropToObject or the drag and drop to offset function. Both work in Fire Fox. Neither work in Chrome. The...
Read more >
drag and drop working in chrome, not firefox - Stack Overflow
The reason it works in Chrome is apparently that Chrome implement non-standard, IE-style window.event , while Firefox does not.
Read more >
why can't i no longer drag and drop urls to my desktop!
Hello, I tried to run firefox with no-deelevate option but do not solve. from cmd : C:\Program Files\Mozilla Firefox>firefox -no-deelevate ...
Read more >
Does anyone know why i cant drag and drop attachments from ...
Works on chrome based browsers but i dont want to use them. ... to drag and drop attachments from outlook to firefox but...
Read more >
Google Chrome's drag drop feature stopped working
Running Chrome as an administrator is causing this problem. Just go to chrome.exe settings and disable it. Restart ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found