I analyzed it today and finally found the reason. the browser written in the js file of the old version has an exception, so the insertion point remains in the header. phpnew blog built-in discuz ubb editor. The editor function is inserted at the cursor, which is inaccurate on ie11.
Today, I analyzed the cause and finally found the cause. The browser written in the js file of the old version is abnormal, so the insertion point is always in the header. I fixed it today.
Provides a js function. returns an array.
The Code is as follows:
Function sys_userAgent (){
Var userAgent = navigator. userAgent,
RMsie =/(msie \ s | trident. * rv :) ([\ w.] + )/,
RFirefox =/(firefox) \/([\ w.] + )/,
ROpera =/(opera). + version \/([\ w.] + )/,
RChrome =/(chrome) \/([\ w.] + )/,
RSafari =/version \/([\ w.] +). * (safari )/;
Var browser, version, ua;
Ua = userAgent. toLowerCase ();
Var match = rMsie.exe c (ua );
If (match! = Null ){
Return {browser: "ie", version: match [2] | "0 "};
}
If (!! Window. ActiveXObject | "ActiveXObject" in window ){
Return {browser: "ie", version: "0 "};
}
Var match = rFirefox.exe c (ua );
If (match! = Null ){
Return {browser: "firefox", version: match [2] | "0 "};
}
Var match = rOpera.exe c (ua );
If (match! = Null ){
Return {browser: "opera", version: match [2] | "0 "};
}
Var match = rChrome.exe c (ua );
If (match! = Null ){
Return {browser: "chrome", version: match [2] | "0 "};
}
Var match = rSafari.exe c (ua );
If (match! = Null ){
Return {browser: "safari", version: match [1] | "0 "};
}
If (match! = Null ){
Return {browser: "", version: "0 "};
}
}
I hope to help you.
The edited content of the editor also contains the problem that the attachment flash loading often fails to be fixed. Press enter to solve the problem.