//>>built
define("mill/editorLinks",["dojo/_base/declare","dojo/_base/lang","dijit/_editor/_Plugin","dijit/form/Button","mill/mill"],function(e,f,b,g,h){var d=e("dijit._editor.plugins.editorLinks",b,{_initButton:function(){var a=this.editor;this.button=new g({label:dojo.i18n.getLocalization("mill","resources").recognizeLinks,ownerDocument:a.ownerDocument,dir:a.dir,lang:a.lang,showLabel:!1,iconClass:this.iconClassPrefix+" CSearchForLinksSmallImageIndex",tabIndex:"-1",onClick:f.hitch(this,"_parseLinks")})},setEditor:function(a){this.editor=
a;this._initButton()},updateState:function(){this.button.set("disabled",this.get("disabled"))},_parseLinks:function(){var a=this.editor.get("value"),c=h.parseUrls(a);a!=c&&(this.editor.beginEditing(),this.editor.set("value",c),this.editor.endEditing());this.editor.focus()}});b.registry.editorLinks=b.registry.editorlinks=function(a){return new d({})};return d});