a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix link opening logic

+1 -1
+1 -1
components/Blocks/TextBlock/index.tsx
··· 249 249 .nodeAt(_pos - 1) 250 250 ?.marks.find((f) => f.type === schema.marks.link) || 251 251 node 252 - .nodeAt(Math.min(_pos - 2, 0)) 252 + .nodeAt(Math.max(_pos - 2, 0)) 253 253 ?.marks.find((f) => f.type === schema.marks.link); 254 254 if (mark) { 255 255 window.open(mark.attrs.href, "_blank");