app/assets/javascripts/plugins/urls.min.js in wysiwyg-rails-1.2.5 vs app/assets/javascripts/plugins/urls.min.js in wysiwyg-rails-1.2.6

- old
+ new

@@ -1,6 +1,6 @@ /*! - * froala_editor v1.2.5 (http://editor.froala.com) + * froala_editor v1.2.6 (http://editor.froala.com) * License http://editor.froala.com/license * Copyright 2014-2015 Froala Labs */ !function(a){a.Editable.URLRegEx=/(\s|^|>)((http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+(\.[a-zA-Z]{2,3})?(:\d*)?(\/\S*)?)(\s|$|<)/gi,a.Editable.prototype.convertURLs=function(b){var c=this;b.each(function(){if(3==this.nodeType){var b=this.textContent.replace(/&nbsp;/gi,"");a.Editable.URLRegEx.test(b)&&(a(this).before(b.replace(a.Editable.URLRegEx,'$1<a href="$2">$2</a>$7')),a(this).remove())}else 1==this.nodeType&&["A","BUTTON","TEXTAREA"].indexOf(this.tagName)<0&&c.convertURLs(a(this).contents())})},a.Editable.prototype.processURLs=function(){this.$original_element.on("editable.afterPaste",function(a,b){b.convertURLs(b.$element.contents())}),this.$original_element.on("editable.keyup",function(a,b,c){var d=c.which;(32==d||13==d)&&b.convertURLs(b.$element.contents())}),this.$original_element.on("editable.keydown",function(b,c,d){var e=d.which;if(32==e){var f=c.getSelectionElement();if(("A"==f.tagName||a(f).parents("a").length)&&c.getSelectionTextInfo(f).atEnd)return b.stopImmediatePropagation(),"A"!==f.tagName&&(f=a(f).parents("a")[0]),a(f).after('&nbsp;<span class="f-marker" data-type="false" data-id="0" data-fr-verified="true"></span><span class="f-marker" data-type="true" data-id="0" data-fr-verified="true"></span>'),c.restoreSelectionByMarkers(),!1}})},a.Editable.initializers.push(a.Editable.prototype.processURLs)}(jQuery); \ No newline at end of file