This commit is contained in:
Zef Hemel
2022-06-14 16:55:50 +02:00
parent 5dbe71568e
commit 17d4553fa9
2 changed files with 3 additions and 5 deletions
-1
View File
@@ -21,7 +21,6 @@ export const pasteLinkExtension = ViewPlugin.fromClass(
let pastedString = pastedText.join("");
if (pastedString.match(urlRegexp)) {
let selection = update.startState.selection.main;
console.log("It's a URL and selection empty?", selection.empty);
if (!selection.empty) {
setTimeout(() => {
update.view.dispatch({