Blame view

public/assets/addons/nkeditor/plugins/code/pretty.js 459 Bytes
2db47680   hexiaodong   chore: 初始提交 php 遗...
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);
  // 	}
  // })