slate-angular 13.0.6 → 13.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2836,7 +2836,7 @@ class SlateEditableComponent {
|
|
|
2836
2836
|
}));
|
|
2837
2837
|
}
|
|
2838
2838
|
toSlateSelection() {
|
|
2839
|
-
if (!this.isComposing && !this.isUpdatingSelection && !this.isDraggingInternally) {
|
|
2839
|
+
if (!this.readonly && !this.isComposing && !this.isUpdatingSelection && !this.isDraggingInternally) {
|
|
2840
2840
|
try {
|
|
2841
2841
|
const root = AngularEditor.findDocumentOrShadowRoot(this.editor);
|
|
2842
2842
|
const { activeElement } = root;
|
|
@@ -3069,7 +3069,7 @@ class SlateEditableComponent {
|
|
|
3069
3069
|
onDOMCopy(event) {
|
|
3070
3070
|
const window = AngularEditor.getWindow(this.editor);
|
|
3071
3071
|
const isOutsideSlate = !hasStringTarget(window.getSelection()) && isTargetInsideVoid(this.editor, event.target);
|
|
3072
|
-
if (!isOutsideSlate && hasTarget(this.editor, event.target) && !this.isDOMEventHandled(event, this.copy)) {
|
|
3072
|
+
if (!isOutsideSlate && hasTarget(this.editor, event.target) && !this.readonly && !this.isDOMEventHandled(event, this.copy)) {
|
|
3073
3073
|
event.preventDefault();
|
|
3074
3074
|
AngularEditor.setFragmentData(this.editor, event.clipboardData, 'copy');
|
|
3075
3075
|
}
|