mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Koenig - Fixed error on Cmd+K with no selection
refs https://github.com/TryGhost/Ghost/issues/9505
This commit is contained in:
parent
20d8c924a2
commit
bc3356051d
@ -1,6 +1,6 @@
|
||||
export function getLinkMarkupFromRange(range) {
|
||||
let {headMarker, tailMarker} = range;
|
||||
if (headMarker === tailMarker || headMarker.next === tailMarker) {
|
||||
if (headMarker && (headMarker === tailMarker || headMarker.next === tailMarker)) {
|
||||
return tailMarker.markups.findBy('tagName', 'a');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user