MCPcopy Create free account
hub / github.com/TruthHun/BookStack / TextareaInput

Function TextareaInput

static/mergely/lib/codemirror.js:1200–1217  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

1198 // TEXTAREA INPUT STYLE
1199
1200 function TextareaInput(cm) {
1201 this.cm = cm;
1202 // See input.poll and input.reset
1203 this.prevInput = "";
1204
1205 // Flag that indicates whether we expect input to appear real soon
1206 // now (after some event like 'keypress' or 'input') and are
1207 // polling intensively.
1208 this.pollingFast = false;
1209 // Self-resetting timeout for the poller
1210 this.polling = new Delayed();
1211 // Tracks when input.reset has punted to just putting a short
1212 // string into the textarea instead of the full selection.
1213 this.inaccurateSelection = false;
1214 // Used to work around IE issue with selection being forgotten when focus moves away from textarea
1215 this.hasSelection = false;
1216 this.composing = null;
1217 };
1218
1219 function hiddenTextarea() {
1220 var te = elt("textarea", null, null, "position: absolute; padding: 0; width: 1px; height: 1em; outline: none");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected