Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) [WE-937] Pasting results in \n's sometimes #3

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
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