Module

utils/env

@ckeditor/ckeditor5-utils/src/env

module

Filtering

Namespaces

  • env

    A namespace containing environment and browser information.

Functions

  • isAndroid( userAgent ) → Boolean

    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.

  • 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

    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

    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

    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

    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

    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

    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.