Move back to a model where the selection is kept in the textarea
Move back to a model where the selection is kept in the textarea

Too many hacks were required when not doing this. Also, it can be done cheaply.

SidPresse/CodeMirror,antimatter15/CodeMirror,MarcelGerber/CodeMirror,MarcelGerber/CodeMirror,wingify/CodeMirror,manderson23/CodeMirror,philuchansky/CodeMirror,vanloswang/CodeMirror,sanyaade-iot/CodeMirror,symbla/CodeMirror,manderson23/CodeMirror,thomasjm/CodeMirror,pjkui/CodeMirror,rrandom/CodeMirror,ejgallego/CodeMirror,sourcelair/CodeMirror,ThebingServices/CodeMirror,filonb/CodeMirror2,KamranMackey/CodeMirror,hackmdio/CodeMirror,ficristo/CodeMirror,morrisonwudi/CodeMirror,qweasd1/CodeMirror,thomasjm/CodeMirror,webida/CodeMirror,jessegrosjean/CodeMirror,rustemferreira/CodeMirror,crazy4chrissi/CodeMirror,adobe/CodeMirror2,shiren/CodeMirror,buchslava/CodeMirror,symbla/CodeMirror,camellhf/CodeMirror,rustemferreira/CodeMirror,r7kamura/CodeMirror,adobe/CodeMirror2,loopspace/CodeMirror,loopspace/CodeMirror,abdelouahabb/CodeMirror,isdampe/CodeMirror,AlanWasTaken/codemirror,Dominator008/CodeMirror,hccampos/CodeMirror,philuchansky/CodeMirror,jkaplon/CodeMirror,amshali/CodeMirror,adobe/CodeMirror2,namin/CodeMirror,ZombieHippie/CodeMirror,ficristo/CodeMirror,KamranMackey/CodeMirror,camellhf/CodeMirror,bgrins/CodeMirror,karthikeyansam/CodeMirror,amshali/CodeMirror,AlanWasTaken/codemirror,sgoo/CodeMirror,apatawari/CodeMirror,Carreau/CodeMirror,djadmin/CodeMirror,Dominator008/CodeMirror,kerabromsmu/CodeMirror,Carreau/CodeMirror,isdampe/CodeMirror,cintiamh/CodeMirror,fmoliveira/CodeMirror,ksanaforge/CodeMirror,increpare/CodeMirror,amshali/CodeMirror,nightwing/CodeMirror,dperetti/CodeMirror,kangkot/CodeMirror,hccampos/CodeMirror,DustinH/CodeMirror,bocharsky-bw/CodeMirror,bfrohs/CodeMirror,DustinH/CodeMirror,sourcelair/CodeMirror,karthikeyansam/CodeMirror,femhub/CodeMirror2,supriyantomaftuh/CodeMirror,gkoberger/CodeMirror,mtaran-google/CodeMirror,mizchi/CodeMirror,jansel/CodeMirror,angelozerr/CodeMirror,Jisuanke/CodeMirror,NeZaMy/CodeMirror2,karevn/CodeMirror,ashmind/CodeMirror,systay/CodeMirror,cintiamh/CodeMirror,cben/CodeMirror,matthewbauer/CodeMirror,InternetGuru/CodeMirror,skylarkcob/CodeMirror,qiankun007/CodeMirror,explorigin/CodeMirror,rasata/CodeMirror,davidpham87/CodeMirror,Icenium/CodeMirror,belph/CodeMirror,bluesh55/CodeMirror,leafo/CodeMirror2,michaelerobertsjr/CodeMirror,ksanaforge/CodeMirror,Aliccer/CodeMirror,fivetran/CodeMirror,TechnicalPursuit/CodeMirror,belph/CodeMirror,NumbersInternational/CodeMirror,jayaprabhakar/CodeMirror,webida/CodeMirror,NumbersInternational/CodeMirror,ssxxue/CodeMirror,Dominator008/CodeMirror,SidPresse/CodeMirror,jhnesk/CodeMirror,jessegrosjean/CodeMirror,supriyantomaftuh/CodeMirror,wingify/CodeMirror,tpphu/CodeMirror,InternetGuru/CodeMirror,d0liver/CodeMirror,rrandom/CodeMirror,Icenium/CodeMirror,kolya-ay/CodeMirror,kevinushey/CodeMirror,kuangyeheng/CodeMirror,femhub/CodeMirror2,pjkui/CodeMirror,supriyantomaftuh/CodeMirror,Ermlab/CodeMirror,ejgallego/CodeMirror,jpolitz/CodeMirror,Navaneethsen/CodeMirror,Jisuanke/CodeMirror,dbarnett/CodeMirror,flyskyko/CodeMirror,codio/CodeMirror,abdelouahabb/CodeMirror,mihailik/CodeMirror,karevn/CodeMirror,elisee/CodeMirror,anthonygego/CodeMirror,leoshine/CodeMirror,kolya-ay/CodeMirror,philuchansky/CodeMirror,mightyguava/CodeMirror,amireh/codemirror,bfrohs/CodeMirror,pjkui/CodeMirror,TechnicalPursuit/CodeMirror,nawroth/CodeMirror,anthonygego/CodeMirror,DustinH/CodeMirror,GerHobbelt/CodeMirror2,vanloswang/CodeMirror,jochenberger/CodeMirror,nightwing/CodeMirror,TechnicalPursuit/CodeMirror,camellhf/CodeMirror,mihailik/CodeMirror,mihailik/CodeMirror,ashmind/CodeMirror,pinbe/CodeMirror,melpon/CodeMirror,ZombieHippie/CodeMirror,crazy4chrissi/CodeMirror,Allenice/CodeMirror,EasonYi/CodeMirror,morrisonwudi/CodeMirror,happibum/CodeMirror-main,michaelerobertsjr/CodeMirror,EasonYi/CodeMirror,SidPresse/CodeMirror,fivetran/CodeMirror,michaelerobertsjr/CodeMirror,ThebingServices/CodeMirror,ficristo/CodeMirror,wingify/CodeMirror,trumanliu/CodeMirror,rustemferreira/CodeMirror,GerHobbelt/CodeMirror2,notepadqq/CodeMirror,elisee/CodeMirror,antimatter15/CodeMirror,d0liver/CodeMirror,codio/CodeMirror,hackmdio/CodeMirror,kk9599/CodeMirror,kerabromsmu/CodeMirror,axter/CodeMirror,TDaglis/CodeMirror,shiren/CodeMirror,bocharsky-bw/CodeMirror,schanzer/CodeMirror,matthewbauer/CodeMirror,r7kamura/CodeMirror,isdampe/CodeMirror,dudb/CodeMirror,increpare/CodeMirror,angelozerr/CodeMirror,jpolitz/CodeMirror,fmoliveira/CodeMirror,MarcelGerber/CodeMirror,bluesh55/CodeMirror,manderson23/CodeMirror,sekcheong/CodeMirror,vincentwoo/CodeMirror,grzegorzmazur/CodeMirror,dudb/CodeMirror,buchslava/CodeMirror,webida/CodeMirror,jessegrosjean/CodeMirror,Allenice/CodeMirror,schanzer/CodeMirror,jayaprabhakar/CodeMirror,Navaneethsen/CodeMirror,sanyaade-iot/CodeMirror,systay/CodeMirror,fmoliveira/CodeMirror,happibum/CodeMirror-main,Icenium/CodeMirror,elisee/CodeMirror,wbinnssmith/CodeMirror,apatawari/CodeMirror,CartoDB/CodeMirror,nawroth/CodeMirror,CartoDB/CodeMirror,ssxxue/CodeMirror,filonb/CodeMirror2,anthonygego/CodeMirror,bocharsky-bw/CodeMirror,matthewbauer/CodeMirror,abdelouahabb/CodeMirror,TDaglis/CodeMirror,ZombieHippie/CodeMirror,codio/CodeMirror,loopspace/CodeMirror,ssxxue/CodeMirror,karthikeyansam/CodeMirror,crazy4chrissi/CodeMirror,notepadqq/CodeMirror,djadmin/CodeMirror,jansel/CodeMirror,gkoberger/CodeMirror,dbarnett/CodeMirror,axter/CodeMirror,alur/CodeMirror,melpon/CodeMirror,kangkot/CodeMirror,skylarkcob/CodeMirror,jhnesk/CodeMirror,namin/CodeMirror,Jisuanke/CodeMirror,davidpham87/CodeMirror,kevinushey/CodeMirror,Allenice/CodeMirror,explorigin/CodeMirror,trumanliu/CodeMirror,tpphu/CodeMirror,schanzer/CodeMirror,INTELOGIE/CodeMirror,sekcheong/CodeMirror,joshterrell805-historic/CodeMirror,qweasd1/CodeMirror,davidpham87/CodeMirror,skylarkcob/CodeMirror,mizchi/CodeMirror,namin/CodeMirror,qiankun007/CodeMirror,alur/CodeMirror,flyskyko/CodeMirror,symbla/CodeMirror,ThebingServices/CodeMirror,NumbersInternational/CodeMirror,sourcelair/CodeMirror,d0liver/CodeMirror,INTELOGIE/CodeMirror,kuangyeheng/CodeMirror,wbinnssmith/CodeMirror,bluesh55/CodeMirror,agendor/CodeMirror,webida/CodeMirror,vincentwoo/CodeMirror,karevn/CodeMirror,agendor/CodeMirror,antimatter15/CodeMirror,pabloferz/CodeMirror,NeZaMy/CodeMirror2,pabloferz/CodeMirror,Aliccer/CodeMirror,hccampos/CodeMirror,vincentwoo/CodeMirror,Navaneethsen/CodeMirror,ksanaforge/CodeMirror,amsul/CodeMirror,dbarnett/CodeMirror,rrandom/CodeMirror,kk9599/CodeMirror,mightyguava/CodeMirror,nightwing/CodeMirror,dperetti/CodeMirror,cintiamh/CodeMirror,nawroth/CodeMirror,vanloswang/CodeMirror,bgrins/CodeMirror,belph/CodeMirror,systay/CodeMirror,flyskyko/CodeMirror,mizchi/CodeMirror,mtaran-google/CodeMirror,Aliccer/CodeMirror,axter/CodeMirror,mightyguava/CodeMirror,leoshine/CodeMirror,bfrohs/CodeMirror,happibum/CodeMirror-main,thomasjm/CodeMirror,Ermlab/CodeMirror,rasata/CodeMirror,sanyaade-iot/CodeMirror,grzegorzmazur/CodeMirror,EasonYi/CodeMirror,dudb/CodeMirror,increpare/CodeMirror,fpco/codemirror,jkaplon/CodeMirror,kk9599/CodeMirror,sgoo/CodeMirror,hackmdio/CodeMirror,ejgallego/CodeMirror,qweasd1/CodeMirror,kerabromsmu/CodeMirror,jpolitz/CodeMirror,kangkot/CodeMirror,agendor/CodeMirror,sekcheong/CodeMirror,apatawari/CodeMirror,melpon/CodeMirror,jochenberger/CodeMirror,filonb/CodeMirror2,fpco/codemirror,qiankun007/CodeMirror,alur/CodeMirror,cben/CodeMirror,gkoberger/CodeMirror,shiren/CodeMirror,pinbe/CodeMirror,rasata/CodeMirror,buchslava/CodeMirror,tpphu/CodeMirror,ashmind/CodeMirror,AlanWasTaken/codemirror,jayaprabhakar/CodeMirror,djadmin/CodeMirror,KamranMackey/CodeMirror,notepadqq/CodeMirror,kuangyeheng/CodeMirror,femhub/CodeMirror2,INTELOGIE/CodeMirror,xeronith/CodeMirror,amsul/CodeMirror,NeZaMy/CodeMirror2,trumanliu/CodeMirror,grzegorzmazur/CodeMirror,pinbe/CodeMirror,r7kamura/CodeMirror,bgrins/CodeMirror,TDaglis/CodeMirror,jkaplon/CodeMirror,joshterrell805-historic/CodeMirror,xeronith/CodeMirror,dperetti/CodeMirror,morrisonwudi/CodeMirror,xeronith/CodeMirror,InternetGuru/CodeMirror,mtaran-google/CodeMirror,pabloferz/CodeMirror