diff --git a/www/js/jquery/kindeditor/kindeditor-all-min.js b/www/js/jquery/kindeditor/kindeditor-all-min.js index accdcdb4df..7307f80cdf 100755 --- a/www/js/jquery/kindeditor/kindeditor-all-min.js +++ b/www/js/jquery/kindeditor/kindeditor-all-min.js @@ -204,7 +204,7 @@ j=k.div,n=b('[name="address"]',j),o=b('[name="searchBtn"]',j),r=b('[name="insert KindEditor.plugin("clearhtml",function(b){var c=this;c.clickToolbar("clearhtml",function(){c.focus();var g=c.html(),g=g.replace(/(]*>)([\s\S]*?)(<\/script>)/ig,""),g=g.replace(/(]*>)([\s\S]*?)(<\/style>)/ig,""),g=b.formatHtml(g,{a:["href","target"],embed:["src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess"],img:["src","width","height","border","alt","title",".width",".height"],table:["border"],"td,th":["rowspan","colspan"],"div,hr,br,tbody,tr,p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":[]}); c.html(g);c.cmd.selection(!0);c.addBookmark()})}); KindEditor.plugin("code",function(b){var c=this;c.clickToolbar("code",function(){c.lang("code.");var g=c.createDialog({name:"code",width:450,title:c.lang("code"),body:'
',yesBtn:{name:c.lang("yes"), -click:function(){var f=b(".ke-code-type",g.div).val(),i=l.val(),f='
\n'+b.escape(i)+"
";c.insertHtml(f).hideDialog().focus()}}}),l=b("textarea",g.div);l[0].focus()})}); +click:function(){var f=b(".ke-code-type",g.div).val(),i=l.val(),f='
\n'+b.escape(i)+"
";c.insertHtml(f).hideDialog().focus()}}}),l=b("textarea",g.div);l[0].focus()})}); KindEditor.plugin("emoticons",function(b){var c=this,g=c.emoticonsPath||c.pluginsPath+"emoticons/images/",l=c.allowPreviewEmoticons===void 0?!0:c.allowPreviewEmoticons,f=1;c.clickToolbar("emoticons",function(){function i(f,j,i){z?f.mouseover(function(){j>C?(z.css("left",0),z.css("right","")):(z.css("left",""),z.css("right",0));F.attr("src",g+i+".gif");b(this).addClass("ke-on")}):f.mouseover(function(){b(this).addClass("ke-on")});f.mouseout(function(){b(this).removeClass("ke-on")});f.click(function(b){c.insertHtml('').hideMenu().focus();b.stop()})}function k(c,f){var j=document.createElement("table");f.append(j);z&&(b(j).mouseover(function(){z.show("block")}),b(j).mouseout(function(){z.hide()}),A.push(b(j)));j.className="ke-table";j.cellPadding=0;j.cellSpacing=0;j.border=0;for(var n=(c-1)*u+p,o=0;o').css("background-position","-"+24*n+"px 0px").css("background-image", "url("+g+"static.gif)");q.append(t);A.push(q);n++}return j}function j(){b.each(A,function(){this.unbind()})}function n(b,c){b.click(function(b){j();t.parentNode.removeChild(t);D.remove();t=k(c,q);o(c);f=c;b.stop()})}function o(c){D=b('
');q.append(D);for(var f=1;f<=w;f++){if(c!==f){var g=b('['+f+"]");n(g,f);D.append(g);A.push(g)}else D.append(b("@["+f+"]"));D.append(b("@ "))}}var r=5,s=9,p=0,u=r*s,w=Math.ceil(135/u),C=Math.floor(s/2),q=b('
'), diff --git a/www/js/jquery/kindeditor/plugins/code/code.js b/www/js/jquery/kindeditor/plugins/code/code.js index 58b049c6f1..4310663ba5 100755 --- a/www/js/jquery/kindeditor/plugins/code/code.js +++ b/www/js/jquery/kindeditor/plugins/code/code.js @@ -45,8 +45,8 @@ KindEditor.plugin('code', function(K) { click : function(e) { var type = K('.ke-code-type', dialog.div).val(), code = textarea.val(), - cls = type === '' ? '' : ' lang-' + type, - html = '
\n' + K.escape(code) + '
'; + cls = type === '' ? '' : type, + html = '
\n' + K.escape(code) + '

'; self.insertHtml(html).hideDialog().focus(); } }