slate-angular 13.0.5 → 13.0.6
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.
|
@@ -1866,6 +1866,9 @@ class BaseElementComponent extends BaseComponent {
|
|
|
1866
1866
|
get isCollapsed() {
|
|
1867
1867
|
return this.selection && Range.isCollapsed(this.editor.selection);
|
|
1868
1868
|
}
|
|
1869
|
+
get isCollapsedAndNonReadonly() {
|
|
1870
|
+
return this.selection && Range.isCollapsed(this.editor.selection) && !this.readonly;
|
|
1871
|
+
}
|
|
1869
1872
|
get readonly() {
|
|
1870
1873
|
return this._context && this._context.readonly;
|
|
1871
1874
|
}
|