|
@@ -290,6 +290,7 @@ export default class Link extends Feature {
|
|
|
//
|
|
//
|
|
|
// @private
|
|
// @private
|
|
|
// @param {engine.view.Position} position
|
|
// @param {engine.view.Position} position
|
|
|
|
|
+// @returns {link.LinkElement|null}
|
|
|
function getPositionParentLink( position ) {
|
|
function getPositionParentLink( position ) {
|
|
|
return position.parent.getAncestors().find( ( ancestor ) => ancestor instanceof LinkElement );
|
|
return position.parent.getAncestors().find( ( ancestor ) => ancestor instanceof LinkElement );
|
|
|
}
|
|
}
|