codemirror-5.30.0,how to solve this problem?
codemirror.js:348 Uncaught TypeError: place is not a function
at new Display (codemirror.js:348)
at new CodeMirror (codemirror.js:7733)
at CodeMirror (codemirror.js:7721)
at Object.success (55:162)
at i (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at y (jquery.min.js:4)
at XMLHttpRequest.c (jquery.min.js:4)
What did you pass as first argument to CodeMirror?
$("textarea")
The docs tell you to pass a DOM node, a function, or null. That's a jQuery object, which isn't something that CodeMirror can work with.
Please try to use
$("#textarea")[0]
Most helpful comment
The docs tell you to pass a DOM node, a function, or null. That's a jQuery object, which isn't something that CodeMirror can work with.