utils/env
@ckeditor/ckeditor5-utils/src/env
Filtering
Namespaces
-
env
module:utils/env~env
A namespace containing environment and browser information.
Functions
-
isAndroid( userAgent ) → Boolean
module:utils/env~isAndroid
Checks if User Agent represented by the string is Android mobile device.
Parameters
userAgent : String
Lowercase
navigator.userAgent
string.
Returns
Boolean
Whether User Agent is Safari or not.
-
isBlink( userAgent ) → Boolean
module:utils/env~isBlink
Checks if User Agent represented by the string is Blink engine.
Parameters
userAgent : String
Lowercase
navigator.userAgent
string.
Returns
Boolean
Whether User Agent is Blink engine or not.
-
isGecko( userAgent ) → Boolean
module:utils/env~isGecko
Checks if User Agent represented by the string is Firefox (Gecko).
Parameters
userAgent : String
Lowercase
navigator.userAgent
string.
Returns
Boolean
Whether User Agent is Firefox or not.
-
isMac( userAgent ) → Boolean
module:utils/env~isMac
Checks if User Agent represented by the string is running on Macintosh.
Parameters
userAgent : String
Lowercase
navigator.userAgent
string.
Returns
Boolean
Whether User Agent is running on Macintosh or not.
-
isRegExpUnicodePropertySupported() → Boolean
module:utils/env~isRegExpUnicodePropertySupported
Checks if the current environment supports ES2018 Unicode properties like
\p{P}
or\p{L}
. More information about unicode properties might be found in Unicode Standard Annex #44.Returns
Boolean
-
isSafari( userAgent ) → Boolean
module:utils/env~isSafari
Checks if User Agent represented by the string is Safari.
Parameters
userAgent : String
Lowercase
navigator.userAgent
string.
Returns
Boolean
Whether User Agent is Safari or not.
-
isWindows( userAgent ) → Boolean
module:utils/env~isWindows
Checks if User Agent represented by the string is running on Windows.
Parameters
userAgent : String
Lowercase
navigator.userAgent
string.
Returns
Boolean
Whether User Agent is running on Windows or not.
-
isiOS( userAgent ) → Boolean
module:utils/env~isiOS
Checks if User Agent represented by the string is running in iOS.
Parameters
userAgent : String
Lowercase
navigator.userAgent
string.
Returns
Boolean
Whether User Agent is running in iOS or not.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.