tinymce.Env
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.
Summary
Properties
Name | Type | Summary | Defined by |
---|---|---|---|
browser.current |
|
Returns the current browser name. |
|
browser.version |
|
Returns the current browser major and minor version. |
|
documentMode |
|
Returns the IE document mode. For non IE browsers, this will fake IE 10 document mode. |
|
os.current |
|
Returns the current operating system name. |
|
os.version |
|
Returns the current operating system major and minor version. |
|
transparentSrc |
|
Transparent image data url. |
Methods
Name | Summary | Defined by |
---|---|---|
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
||
Returns |
Methods
browser.isChromium()
browser.isChromium(): Boolean
Returns true
if the user’s browser is Chromium based, such as Google Chrome or newer versions of Microsoft Edge.
browser.isEdge()
browser.isEdge(): Boolean
Returns true
if the user’s browser is Microsoft Edge Legacy. Does not return true for the newer Chromium-based Microsoft Edge.
browser.isIE()
browser.isIE(): Boolean
Returns true
if the user’s browser is Microsoft Internet Explorer.
deviceType.isDesktop()
deviceType.isDesktop(): Boolean
Returns true
if the user’s device is a desktop device.
deviceType.isTouch()
deviceType.isTouch(): Boolean
Returns true
if the user’s device is a touch device.
deviceType.isWebView()
deviceType.isWebView(): Boolean
Returns true
if the user’s device is a WebView device.
deviceType.isiPhone()
deviceType.isiPhone(): Boolean
Returns true
if the user’s device is an iPhone.