# 이슈처리
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 selection: Selection = document.getSelection();
|
||||||
const range: Range = selection.getRangeAt(0);
|
const range: Range = selection.getRangeAt(0);
|
||||||
|
|
||||||
|
let inEditor = false;
|
||||||
if (removeSelected) {
|
if (removeSelected) {
|
||||||
|
// onPaste
|
||||||
selection.empty();
|
selection.empty();
|
||||||
|
inEditor = true;
|
||||||
|
} else {
|
||||||
|
inEditor = this.inEditor(selection.anchorNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
const inEditor = this.inEditor(selection.anchorNode);
|
|
||||||
if (inEditor) {
|
if (inEditor) {
|
||||||
range.insertNode(node);
|
range.insertNode(node);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user