8
0
Prechádzať zdrojové kódy

DomConverter#getCorrespondingDomElement changed to mapViewToDom() method (see ckeditor5-engine #922).

Szymon Kupś 8 rokov pred
rodič
commit
adfc4f621c
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      packages/ckeditor5-link/src/link.js

+ 2 - 2
packages/ckeditor5-link/src/link.js

@@ -333,13 +333,13 @@ export default class Link extends Plugin {
 
 
 		const target = targetLink ?
 		const target = targetLink ?
 			// When selection is inside link element, then attach panel to this element.
 			// When selection is inside link element, then attach panel to this element.
-			viewDocument.domConverter.getCorrespondingDomElement( targetLink ) :
+			viewDocument.domConverter.mapViewToDom( targetLink ) :
 			// Otherwise attach panel to the selection.
 			// Otherwise attach panel to the selection.
 			viewDocument.domConverter.viewRangeToDom( viewDocument.selection.getFirstRange() );
 			viewDocument.domConverter.viewRangeToDom( viewDocument.selection.getFirstRange() );
 
 
 		return {
 		return {
 			target,
 			target,
-			limiter: viewDocument.domConverter.getCorrespondingDomElement( viewDocument.selection.editableElement )
+			limiter: viewDocument.domConverter.mapViewToDom( viewDocument.selection.editableElement )
 		};
 		};
 	}
 	}