braid-text 0.5.12 → 0.5.14
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/client/syncarea.js +0 -1
- package/client/text-client.js +5 -6
- package/package.json +1 -1
package/client/syncarea.js
CHANGED
|
@@ -59,7 +59,6 @@ class SyncArea extends HTMLElement {
|
|
|
59
59
|
// Builds the inner textarea, wires up events, starts simpleton_client
|
|
60
60
|
// and cursor_highlights if enabled.
|
|
61
61
|
connect() {
|
|
62
|
-
console.log('DBG sync-area: connect', {src: this.getAttribute('src'), accept: this.getAttribute('accept')})
|
|
63
62
|
if (this.firstChild)
|
|
64
63
|
console.warn('<sync-area> ignoring existing child content')
|
|
65
64
|
while (this.firstChild) this.removeChild(this.firstChild)
|
package/client/text-client.js
CHANGED
|
@@ -148,12 +148,11 @@ function text_prepare_put(patches, client_state) {
|
|
|
148
148
|
// ── UI helpers ─────────────────────────────────────────────────────────
|
|
149
149
|
|
|
150
150
|
function set_acked_state(textarea, on = true) {
|
|
151
|
-
if
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
151
|
+
// Save the normal caret color, if we haven't already
|
|
152
|
+
textarea.saved_caret_color ??= textarea.style.caretColor || ''
|
|
153
|
+
|
|
154
|
+
// Now update it
|
|
155
|
+
textarea.style.caretColor = on ? textarea.saved_caret_color : 'red'
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
function set_error_state(textarea, on = true) {
|