@dra2020/baseclient 1.0.115 → 1.0.116
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.
package/dist/baseclient.js
CHANGED
|
@@ -4781,8 +4781,9 @@ class OTClientEngine extends OTE.OTEngine {
|
|
|
4781
4781
|
setReadOnly(b) {
|
|
4782
4782
|
if (b != this.bReadOnly) {
|
|
4783
4783
|
this.bReadOnly = b;
|
|
4784
|
-
|
|
4785
|
-
|
|
4784
|
+
//No longer necessary - especially since we want to allow local edits to be applied for temporary work.
|
|
4785
|
+
//if (this.bReadOnly)
|
|
4786
|
+
// this.failbackToServerState();
|
|
4786
4787
|
}
|
|
4787
4788
|
}
|
|
4788
4789
|
startLocalEdit() {
|
|
@@ -4950,7 +4951,11 @@ class OTClientEngine extends OTE.OTEngine {
|
|
|
4950
4951
|
// 4. An undo operation.
|
|
4951
4952
|
//
|
|
4952
4953
|
addLocalEdit(orig) {
|
|
4953
|
-
|
|
4954
|
+
//Comment out bReadOnly test to now allow changes to be locally applied for readonly sessions, for playing around.
|
|
4955
|
+
//Server still prevents any edits from actually being applied. And clientsession changes
|
|
4956
|
+
//Don't actually send edits as well.
|
|
4957
|
+
//if (! this.bReadOnly)
|
|
4958
|
+
{
|
|
4954
4959
|
try {
|
|
4955
4960
|
this.actionAllClient.compose(orig);
|
|
4956
4961
|
this.actionAllPendingClient.compose(orig);
|