SyntaxError caused by lack of character in CodeMirror line

This post was flagged by the community and is temporarily hidden.

Getting the code out of the editor by reading text from the DOM is an extremely terrible idea. Use the actual editor object and do .state.doc.toString().

1 Like