Ghost/ghost/admin/lib/koenig-editor/addon/utils/markup-utils.js
Kevin Ansfield 1a2e345957 Koenig - Ctrl/Cmd+K shortcut has same behaviour as toolbar link button
no issue
- override mobiledoc-kit's default <kbd>Ctrl/Cmd+K</kbd> shortcut to trigger our own link editing component
2018-04-26 17:04:40 +01:00

7 lines
227 B
JavaScript

export function getLinkMarkupFromRange(range) {
let {headMarker, tailMarker} = range;
if (headMarker === tailMarker || headMarker.next === tailMarker) {
return tailMarker.markups.findBy('tagName', 'a');
}
}