IE11 下發帖頁編輯器的工具欄木有了。。。情況就是這樣的:

我知道你們都需要看重點的,開搞:
文件:statis/js/editor.js
查找:
- if(BROWSER.other) {
- $(editorid + '_controls').style.display = 'none';
- return;
- }
替換為:
- /*
- if(BROWSER.other) {
- $(editorid + '_controls').style.display = 'none';
- return;
- }
- */
主要的原因是什麼呢?
坑爹的微軟把 IE11 的 USERAGENT 標識改成了:
mozilla/5.0 (windows nt 6.1; wow64; trident/7.0; slcc2; .net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; media center pc 6.0; rv:11.0) like gecko
以前在 USERAGENT 裏面都會帶上 MSIE 與版本號,這次作死的微軟把這玩意兒改了,用 like gecko 作為 IE 標識,用 rv 作為版本號,而 discuz 在 common.js 判斷瀏覽器的時候沒有把 IE11 加入進來,所以當用 IE11 瀏覽的時候會出錯