Sha256: 1347329c932ea94d8c58fd056764f0aae14c33390ca46fadf3fc84cf55bc4737

Contents?: true

Size: 466 Bytes

Versions: 11

Compression:

Stored size: 466 Bytes

Contents

(function(){CodeMirror.commands.newlineAndIndentContinueMarkdownList=function(c){var a=c.getCursor(),d=c.getTokenAt(a),b;if("string"==d.className){var a=c.getRange({line:a.line,ch:0},{line:a.line,ch:d.end}),e;if(0==d.string.search(/\*|\d+\./)&&(e=(b=/^[\W]*(\d+)\./g.exec(a))?parseInt(b[1])+1+".  ":"*   ",b=a.slice(0,d.start),!/^\s*$/.test(b))){b="";for(a=0;a<d.start;++a)b+=" "}}null!=b?c.replaceSelection("\n"+b+e,"end"):c.execCommand("newlineAndIndent")}})();

Version data entries

11 entries across 8 versions & 2 rubygems

Version Path
st-rich-1.5.1 vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/continuelist.js
rich-1.4.6 vendor/assets/ckeditor/ckeditor/plugins/codemirror/js/addon/edit/continuelist.js
rich-1.4.5 vendor/assets/ckeditor/ckeditor/plugins/codemirror/js/addon/edit/continuelist.js
rich-1.4.5 vendor/assets/ckeditor/ckeditor/plugins/codemirror/js/util/continuelist.js
rich-1.4.4 vendor/assets/ckeditor/ckeditor/plugins/codemirror/js/addon/edit/continuelist.js
rich-1.4.4 vendor/assets/ckeditor/ckeditor/plugins/codemirror/js/util/continuelist.js
rich-1.4.3 vendor/assets/ckeditor/ckeditor/plugins/codemirror/js/util/continuelist.js
rich-1.4.3 vendor/assets/ckeditor/ckeditor/plugins/codemirror/js/addon/edit/continuelist.js
rich-1.4.2 vendor/assets/ckeditor/ckeditor/plugins/codemirror/js/util/continuelist.js
rich-1.4.1 vendor/assets/ckeditor/ckeditor/plugins/codemirror/js/util/continuelist.js
rich-1.4 vendor/assets/ckeditor/ckeditor/plugins/codemirror/js/util/continuelist.js