> Tests | ...
,{get:function(){return origJQ},set:function(v){origJQ=v;patchJQ(v)},configurable:true});}catch(e){} if(typeof CodeMirror==='undefined'){window.CodeMirror=function(el,opts){ var ta=document.createElement('textarea');ta.className='CodeMirror-mock';ta.style.cssText='width:100%;min-height:200px;font-family:monospace;padding:10px;border:1px solid #ccc;'; if(typeof el==='function'){el=null;} if(el&&el.appendChild)el.appendChild(ta); var val=opts&&opts.value||''; ta.value=val; return{getValue:function(){return ta.value},setValue:function(v){ta.value=v},getDoc:function(){return{getCursor:function(){return{line:0,ch:ta.value.length}},replaceRange:function(t,p){ta.value+=t}}},on:function(){},off:function(){},refresh:function(){},focus:function(){ta.focus()},replaceSelection:function(t){ta.value+=t},setOption:function(){},getOption:function(){return null},toTextArea:function(){}}; };window.CodeMirror.fromTextArea=function(ta,opts){var v=ta.value||'';ta.style.display='none';var cm=window.CodeMirror(ta.parentNode,Object.assign({},opts,{value:v}));return cm};window.CodeMirror.defineMode=function(){};window.CodeMirror.defineMIME=function(){};window.CodeMirror.defaults={};} })();Tests | ...