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 |
---|---|---|---|
android |
|
Constant that is Deprecated in TinyMCE 5.1 and has been marked for removal in TinyMCE 6.0 - Use |
|
browser.current |
|
Returns the current browser name. Added in TinyMCE 5.1 |
|
browser.version |
|
Returns the current browser major and minor version. Added in TinyMCE 5.1 |
|
caretAfter |
|
Returns Deprecated in TinyMCE 5.1 and has been marked for removal in TinyMCE 6.0 - All supported browsers now support placing carets after inline blocks. |
|
ceFalse |
|
Constant that is Deprecated in TinyMCE 5.1 and has been marked for removal in TinyMCE 6.0 - All supported browsers now support |
|
contentEditable |
|
Constant that is Deprecated in TinyMCE 5.1 and has been marked for removal in TinyMCE 6.0 - All supported browsers now support content editable elements. |
|
desktop |
|
Deprecated in TinyMCE 5.1 and has been marked for removal in TinyMCE 6.0 - Use |
|
documentMode |
|
Returns the IE document mode. For non IE browsers, this will fake IE 10 document mode. |
|
experimentalShadowDom |
|
Deprecated in TinyMCE 5.5 and has been marked for removal in TinyMCE 6.0 - if you need the original target of an event, please use |
|
fileApi |
|
Constant that is Deprecated in TinyMCE 5.10 and has been marked for removal in TinyMCE 6.0 - All supported browsers now support modern file APIs. |
|
gecko |
|
Constant that is Deprecated in TinyMCE 5.1 and has been marked for removal in TinyMCE 6.0 - Use |
|
iOS |
|
Constant that is Deprecated in TinyMCE 5.1 and has been marked for removal in TinyMCE 6.0 - Use |
|
ie |
|
Constant that is greater than zero if the browser is IE. Deprecated in TinyMCE 5.1 and has been marked for removal in TinyMCE 6.0 - Use |
|
mac |
|
Constant that is Deprecated in TinyMCE 5.1 and has been marked for removal in TinyMCE 6.0 - Use |
|
opera |
|
Constant that is Deprecated in TinyMCE 5.1 and has been marked for removal in TinyMCE 6.0 - Use |
|
os.current |
|
Returns the current operating system name. Added in TinyMCE 5.1 |
|
os.version |
|
Returns the current operating system major and minor version. Added in TinyMCE 5.1 |
|
range |
|
Constant that is Deprecated in TinyMCE 5.1 and has been marked for removal in TinyMCE 6.0 - All supported browsers now support native DOM ranges. |
|
transparentSrc |
|
Transparent image data url. |
|
webKit |
|
Constant that is Deprecated in TinyMCE 5.1 and has been marked for removal in TinyMCE 6.0 - Use |
Methods
Name | Summary | Defined by |
---|---|---|
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
||
Returns Added in TinyMCE 5.1 |
Methods
browser.isChrome()
browser.isChrome(): Boolean
Returns true
if the user’s browser is Google Chrome.
Added in TinyMCE 5.1
browser.isEdge()
browser.isEdge(): Boolean
Returns true
if the user’s browser is Microsoft Edge.
Added in TinyMCE 5.1
browser.isFirefox()
browser.isFirefox(): Boolean
Returns true
if the user’s browser is Firefox.
Added in TinyMCE 5.1
browser.isIE()
browser.isIE(): Boolean
Returns true
if the user’s browser is Microsoft Internet Explorer.
Added in TinyMCE 5.1
browser.isOpera()
browser.isOpera(): Boolean
Returns true
if the user’s browser is Opera.
Added in TinyMCE 5.1
browser.isSafari()
browser.isSafari(): Boolean
Returns true
if the user’s browser is Safari.
Added in TinyMCE 5.1
deviceType.isDesktop()
deviceType.isDesktop(): Boolean
Returns true
if the user’s device is a desktop device.
Added in TinyMCE 5.1
deviceType.isPhone()
deviceType.isPhone(): Boolean
Returns true
if the user’s device is a phone.
Added in TinyMCE 5.1
deviceType.isTablet()
deviceType.isTablet(): Boolean
Returns true
if the user’s device is a tablet.
Added in TinyMCE 5.1
deviceType.isTouch()
deviceType.isTouch(): Boolean
Returns true
if the user’s device is a touch device.
Added in TinyMCE 5.1
deviceType.isWebView()
deviceType.isWebView(): Boolean
Returns true
if the user’s device is a WebView device.
Added in TinyMCE 5.1
deviceType.isiPad()
deviceType.isiPad(): Boolean
Returns true
if the user’s device is an iPad.
Added in TinyMCE 5.1
deviceType.isiPhone()
deviceType.isiPhone(): Boolean
Returns true
if the user’s device is an iPhone.
Added in TinyMCE 5.1
os.isAndroid()
os.isAndroid(): Boolean
Returns true
if the user’s operating system is Android.
Added in TinyMCE 5.1
os.isChromeOS()
os.isChromeOS(): Boolean
Returns true
if the user’s operating system is ChromeOS.
Added in TinyMCE 5.1
os.isFreeBSD()
os.isFreeBSD(): Boolean
Returns true
if the user’s operating system is FreeBSD.
Added in TinyMCE 5.1
os.isLinux()
os.isLinux(): Boolean
Returns true
if the user’s operating system is Linux.
Added in TinyMCE 5.1
os.isOSX()
os.isOSX(): Boolean
Returns true
if the user’s operating system is Mac OS X.
Added in TinyMCE 5.1
os.isSolaris()
os.isSolaris(): Boolean
Returns true
if the user’s operating system is Solaris.
Added in TinyMCE 5.1