mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
Koenig - Fixed error when pasting text with a whole paragraph selected
refs https://github.com/TryGhost/Ghost/issues/9505
This commit is contained in:
parent
8d0050df67
commit
ff96eb019f
@ -131,11 +131,13 @@ export default Component.extend({
|
||||
if (section) {
|
||||
let containerRect = this.element.parentNode.getBoundingClientRect();
|
||||
let selectedElement = section.renderNode.element;
|
||||
if (selectedElement) {
|
||||
let selectedElementRect = selectedElement.getBoundingClientRect();
|
||||
let top = selectedElementRect.top - containerRect.top;
|
||||
|
||||
this.set('top', top);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
_showMenu() {
|
||||
|
Loading…
Reference in New Issue
Block a user