# 이슈처리

183 쪽지 붙여넣기 기능 안됨
This commit is contained in:
leejinho 2020-02-03 10:19:18 +09:00
parent 1148315939
commit 8b7e1e27b5

View File

@ -558,11 +558,15 @@ export class WriteComponent implements OnInit, OnDestroy, AfterViewInit {
const selection: Selection = document.getSelection();
const range: Range = selection.getRangeAt(0);
let inEditor = false;
if (removeSelected) {
// onPaste
selection.empty();
inEditor = true;
} else {
inEditor = this.inEditor(selection.anchorNode);
}
const inEditor = this.inEditor(selection.anchorNode);
if (inEditor) {
range.insertNode(node);
} else {