Context:
We are currently seeing 200+ client error messages in Logstash pertaining to a JavaScript error that might be causing functionality disruption during the editing process.
Error Details:
Error Message: "TypeError: context.$textarea.textSelection is not a function"
Error Class: TypeError
Occurrence: During editing action within the "Project" namespace on the "enwiki" Wikipedia project
Impact:
The error occurs while trying to call the non-existent function textSelection on the object context.$textarea.
Sample tack Trace:
Originated in "jquery.wikiEditor.js" at line 19, column 82
Influenced by "ext.wikiEditor.js" at line 4, column 695
Reference to jQuery library ("jquery-3.5.1.min.js") at line 2, column 30005
Related to Deferred object at line 2, column 30307