v1.0
只读模式 group, 分享 评论更多问题 博客标签总是存在一个
This commit is contained in:
16
public/tinymce/classes/Env.js
Normal file → Executable file
16
public/tinymce/classes/Env.js
Normal file → Executable file
@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class contains various environment constrants like browser versions etc.
|
||||
* This class contains various environment constants like browser versions etc.
|
||||
* Normally you don't want to sniff specific browser versions but sometimes you have
|
||||
* to when it's impossible to feature detect. So use this with care.
|
||||
*
|
||||
@ -18,9 +18,10 @@
|
||||
*/
|
||||
define("tinymce/Env", [], function() {
|
||||
var nav = navigator, userAgent = nav.userAgent;
|
||||
var opera, webkit, ie, ie11, gecko, mac, iDevice;
|
||||
var opera, webkit, ie, ie11, gecko, mac, iDevice, android;
|
||||
|
||||
opera = window.opera && window.opera.buildNumber;
|
||||
android = /Android/.test(userAgent);
|
||||
webkit = /WebKit/.test(userAgent);
|
||||
ie = !webkit && !opera && (/MSIE/gi).test(userAgent) && (/Explorer/gi).test(nav.appName);
|
||||
ie = ie && /MSIE (\w+)\./.exec(userAgent)[1];
|
||||
@ -89,6 +90,15 @@ define("tinymce/Env", [], function() {
|
||||
*/
|
||||
iOS: iDevice,
|
||||
|
||||
/**
|
||||
* Constant that is true if the os is android.
|
||||
*
|
||||
* @property android
|
||||
* @type Boolean
|
||||
* @final
|
||||
*/
|
||||
android: android,
|
||||
|
||||
/**
|
||||
* Constant that is true if the browser supports editing.
|
||||
*
|
||||
@ -132,4 +142,4 @@ define("tinymce/Env", [], function() {
|
||||
*/
|
||||
documentMode: ie ? (document.documentMode || 7) : 10
|
||||
};
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user