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

Function TextareaInput

static/editor.md/lib/codemirror/lib/codemirror.js:1151–1167  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

1149 // TEXTAREA INPUT STYLE
1150
1151 function TextareaInput(cm) {
1152 this.cm = cm;
1153 // See input.poll and input.reset
1154 this.prevInput = "";
1155
1156 // Flag that indicates whether we expect input to appear real soon
1157 // now (after some event like 'keypress' or 'input') and are
1158 // polling intensively.
1159 this.pollingFast = false;
1160 // Self-resetting timeout for the poller
1161 this.polling = new Delayed();
1162 // Tracks when input.reset has punted to just putting a short
1163 // string into the textarea instead of the full selection.
1164 this.inaccurateSelection = false;
1165 // Used to work around IE issue with selection being forgotten when focus moves away from textarea
1166 this.hasSelection = false;
1167 };
1168
1169 function hiddenTextarea() {
1170 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