Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/plugins/MarkdownPaste.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ export default class MarkdownPaste extends Extension {
return true;
}

// otherwise, if we have html on the clipboard then fallback to the
// otherwise, if we only have html on the clipboard then fallback to the
// default HTML parser behavior that comes with Prosemirror.
if (text.length === 0 || html) return false;
if (text.length === 0 && html) return false;

event.preventDefault();

Expand Down