!function(){var t=UM.utils;UM.registerWidget("link",{tpl:'<style type="text/css">.edui-dialog-link .edui-link-table{font-size: 12px;margin: 10px;line-height: 30px}.edui-dialog-link .edui-link-txt{width:300px;height:21px;line-height:21px;border:1px solid #d7d7d7;}</style><table class="edui-link-table"><tr><td><label for="href"><%=lang_input_url%></label></td><td><input class="edui-link-txt" id="edui-link-Jhref" type="text" /></td></tr><tr><td><label for="title"><%=lang_input_title%></label></td><td><input class="edui-link-txt" id="edui-link-Jtitle" type="text"/></td></tr><tr><td colspan="2"><label for="target"><%=lang_input_target%></label><input id="edui-link-Jtarget" type="checkbox"/></td></tr></table>',initContent:function(t){var e=t.getLang("link");if(e)var i=$.parseTmpl(this.tpl,e.static);this.root().html(i)},initEvent:function(e,i){var l=e.queryCommandValue("link");l&&($("#edui-link-Jhref",i).val(t.html($(l).attr("href"))),$("#edui-link-Jtitle",i).val($(l).attr("title")),"_blank"==$(l).attr("target")&&$("#edui-link-Jtarget").attr("checked",!0)),$("#edui-link-Jhref",i).focus()},buttons:{ok:{exec:function(t){var e=$("#edui-link-Jhref").val().replace(/^\s+|\s+$/g,"");e&&t.execCommand("link",{href:e,target:$("#edui-link-Jtarget:checked").length?"_blank":"_self",title:$("#edui-link-Jtitle").val().replace(/^\s+|\s+$/g,""),_href:e})}},cancel:{}},width:400})}();