mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
1a2e345957
no issue - override mobiledoc-kit's default <kbd>Ctrl/Cmd+K</kbd> shortcut to trigger our own link editing component
7 lines
227 B
JavaScript
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');
|
|
}
|
|
}
|