/*! UEditorPlus v2.0.0*/
!function(){var a,b=editor,c=$G("preview"),d=$G("preitem"),e=templates,f=function(){for(var a,b="",c=0;a=e[c++];)b+='<div class="preitem" onclick="pre('+c+')"><img src="images/'+a.pre+'" '+(a.title?"alt="+a.title+" title="+a.title:"")+"></div>";d.innerHTML=b},g=function(b){var f=e[b-1];a=f,h(),domUtils.setStyles(d.childNodes[b-1],{"background-color":"lemonChiffon",border:"#ccc 1px solid"}),c.innerHTML=f.preHtml?f.preHtml:""},h=function(){for(var a,b=d.children,c=0;a=b[c++];)domUtils.setStyles(a,{"background-color":"",border:"white 1px solid"})};dialog.onok=function(){$G("issave").checked||b.execCommand("cleardoc");var c={html:a&&a.html};b.execCommand("template",c)},f(),window.pre=g,g(2)}();