Important changes to Tiny Cloud pricing > Find out more

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.

Properties

name type summary defined by
android Boolean Constant that is true if the os is android. tinymce.Env
ceFalse Boolean Constant that is true if the browser supports contentEditable=false regions. tinymce.Env
contentEditable Boolean Constant that is true if the browser supports editing. tinymce.Env
documentMode Number Returns the IE document mode for non IE browsers this will fake IE 10. tinymce.Env
fileApi Boolean Constant that is true if the browser has a modern file api. tinymce.Env
gecko Boolean Constant that is true if the browser is Gecko. tinymce.Env
iOS Boolean Constant that is true if the os is iOS. tinymce.Env
ie Boolean Constant that is more than zero if the browser is IE. tinymce.Env
mac Boolean Constant that is true if the os is Mac OS. tinymce.Env
noCaretAfter Boolean Returns true/false if the browser can or can't place the caret after a inline block like an image. tinymce.Env
opera Boolean Constant that is true if the browser is Opera. tinymce.Env
range Boolean Constant that is true if the browser supports native DOM Ranges. IE 9+. tinymce.Env
transparentSrc Boolean Transparent image data url. tinymce.Env
webKit Boolean Constant that is true if the browser is WebKit (Safari/Chrome). tinymce.Env

Can't find what you're looking for? Let us know.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.