提交 ddf5ae09 编写于 作者: C campaign

by zhanyi

上级 9ffd6615
......@@ -121,9 +121,9 @@ UE.plugins['highlightcode'] = function() {
str.push(ci[browser.ie?'innerText':'textContent'])
});
var pre = domUtils.createElement(me.document,'pre',{
innerHTML : str.join('\n'),
'class' : 'brush: '+di.className.replace(/\s+/g,' ').split(' ')[1]+';toolbar:false;'
});
pre.appendChild(me.document.createTextNode(str.join('\n')));
di.parentNode.replaceChild(pre,di);
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册