fix(): readonly disable cut
This commit is contained in:
parent
c1d1b63646
commit
6173480172
|
@ -373,7 +373,10 @@ class NativeEvent {
|
|||
|
||||
change.event.onDocument('cut', (event) => {
|
||||
const range = change.range.get();
|
||||
if (!this.engine.container.contains(range.commonAncestorNode))
|
||||
if (
|
||||
!this.engine.container.contains(range.commonAncestorNode) ||
|
||||
this.engine.readonly
|
||||
)
|
||||
return;
|
||||
event.stopPropagation();
|
||||
clipboard.write(event, undefined, () => {
|
||||
|
|
Loading…
Reference in New Issue