Make CodeMirror reindent lines on paste
Make CodeMirror reindent lines on paste

The project from which this code is adapted, brackets-paste-and-indent, uses the Unlicense, so it is fine to take and adapt code from it.

My changes/adaptations were combining the code into one block so that it is more self-contained, and reformatting its style to match the rest of this project.

maxsites/elevator,magwo/elevatorsaga,Endika/elevatorsaga,tcort/elevatorsaga,beni55/elevatorsaga,beni55/elevatorsaga,maxsites/elevator,kawasima/elevatorsaga,koalazak/elevatorsaga,koalazak/elevatorsaga,tcort/elevatorsaga,magwo/elevatorsaga,Endika/elevatorsaga,tksugimoto/elevatorsaga,tcort/elevatorsaga,tksugimoto/elevatorsaga,kawasima/elevatorsaga,magwo/elevatorsaga,kawasima/elevatorsaga,beni55/elevatorsaga,koalazak/elevatorsaga,maxsites/elevator,Endika/elevatorsaga,tksugimoto/elevatorsaga