Replace Textarea with Codemirror editor

PHOTO EMBED

Sun Oct 22 2023 15:03:34 GMT+0000 (Coordinated Universal Time)

Saved by @ADistractedDev #javascript #reac #jest

<link rel="stylesheet" type="text/css" href="plugin/codemirror/lib/codemirror.css"> <body>	<textarea class="codemirror-textarea"></textarea></body> <script> $(document).ready(function(){    var codeText = $(".codemirror-textarea")[0];    var editor = CodeMirror.fromTextArea(codeText, {        lineNumbers : true    });}); </script> <script type="text/javascript" src="plugin/codemirror/lib/codemirror.js"></script>
content_copyCOPY