fix: disable paste in read only mode #260

pr675
Hufe921 3 years ago
parent 2064236d94
commit f19077b2ce

@ -53,6 +53,8 @@ export class CursorAgent {
}
private _paste(evt: ClipboardEvent) {
const isReadonly = this.draw.isReadonly()
if (isReadonly) return
const clipboardData = evt.clipboardData
if (!clipboardData) return
const rangeManager = this.draw.getRange()

Loading…
Cancel
Save