# 이슈처리
183 쪽지 붙여넣기 기능 안됨
This commit is contained in:
parent
1148315939
commit
8b7e1e27b5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user