1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/lib/koenig-editor/addon/utils/markup-utils.js

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');
}
}