mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
7 lines
243 B
JavaScript
7 lines
243 B
JavaScript
export function getLinkMarkupFromRange(range) {
|
|
let {headMarker, tailMarker} = range;
|
|
if (headMarker && (headMarker === tailMarker || headMarker.next === tailMarker)) {
|
|
return tailMarker.markups.findBy('tagName', 'a');
|
|
}
|
|
}
|