From c98a5c83191fff13fc981fa1a75d215e1b1b3887 Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 18 Apr 2023 19:27:26 -0300 Subject: [PATCH] =?UTF-8?q?solo=20mostrar=20enlaces=20si=20se=20est=C3=A1?= =?UTF-8?q?=20en=20un=20bloque?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor/menubar/Linking.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/editor/menubar/Linking.svelte b/src/editor/menubar/Linking.svelte index 88e7c96..a918fea 100644 --- a/src/editor/menubar/Linking.svelte +++ b/src/editor/menubar/Linking.svelte @@ -31,6 +31,10 @@ function getLinks(node) { /** @type {Link[]} */ let links = []; + + // a veces selecciona el documento entero y no queremos mostrar todos los enlaces + if (node.type.spec.group !== "block") return []; + let lastWasLinkMark = false; node.descendants((node) => { for (const mark of node.marks) {