Clear event handlers on unmount
Use CodeMirror npm module