只读模式
group, 分享
评论更多问题
博客标签总是存在一个
This commit is contained in:
lealife
2015-06-15 18:01:48 +08:00
parent 7e458bb433
commit 6987a38820
1453 changed files with 114561 additions and 91536 deletions

16
public/tinymce/classes/Env.js Normal file → Executable file
View 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
};
});
});