@cocreate/text 1.26.4 → 1.26.5
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/index.js +4 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [1.26.5](https://github.com/CoCreate-app/CoCreate-text/compare/v1.26.4...v1.26.5) (2024-05-08)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* check if realtime and crdt prior to sendPosition ([c50954d](https://github.com/CoCreate-app/CoCreate-text/commit/c50954d98ed012dde171c8a00ef4cd6ed509f73e))
|
7
|
+
|
1
8
|
## [1.26.4](https://github.com/CoCreate-app/CoCreate-text/compare/v1.26.3...v1.26.4) (2024-04-29)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -126,7 +126,10 @@ function initDocument(doc) {
|
|
126
126
|
documents.set(doc);
|
127
127
|
doc.addEventListener('selectionchange', (e) => {
|
128
128
|
let element = doc.activeElement;
|
129
|
-
|
129
|
+
let { isRealtime, isCrdt } = getAttributes(element);
|
130
|
+
|
131
|
+
if (isRealtime && isCrdt)
|
132
|
+
sendPosition(element);
|
130
133
|
});
|
131
134
|
}
|
132
135
|
}
|