chore: Dependency bumps (#4295)
* chore: Remove dupe dep of body-scroll-lock * chore: Update dd-trace * Sentry * typescript-eslint (fixes warning)
This commit is contained in:
@@ -5,7 +5,6 @@ import { isUrl } from "../../utils/urls";
|
||||
import Extension from "../lib/Extension";
|
||||
import isMarkdown from "../lib/isMarkdown";
|
||||
import isInCode from "../queries/isInCode";
|
||||
import selectionIsInCode from "../queries/isInCode";
|
||||
import { LANGUAGES } from "./Prism";
|
||||
|
||||
function isDropboxPaper(html: string): boolean {
|
||||
@@ -126,7 +125,7 @@ export default class PasteHandler extends Extension {
|
||||
|
||||
// If the users selection is currently in a code block then paste
|
||||
// as plain text, ignore all formatting and HTML content.
|
||||
if (selectionIsInCode(view.state)) {
|
||||
if (isInCode(view.state)) {
|
||||
event.preventDefault();
|
||||
|
||||
view.dispatch(view.state.tr.insertText(text));
|
||||
|
||||
Reference in New Issue
Block a user