审查视图

public/assets/addons/nkeditor/plugins/code/pretty.js 459 字节
郭盛 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/**
 * @author yangjian
 * @since 18-9-11 下午9:02.
 */

// function _bindEvent(el, type, fn) {
// 	if (el.addEventListener){
// 		el.addEventListener(type, fn);
// 	} else if (el.attachEvent){
// 		el.attachEvent('on' + type, fn);
// 	}
// }
// _bindEvent(document.body, "DOMNodeInserted", function(e) {
// 	var className = e.target.className;
// 	if (className && className.indexOf("language-") != -1) {
// 		Prism.highlightElement(e.target);
// 	}
// })