Module

utils/env

@ckeditor/ckeditor5-utils/src/env

module

Filtering

Namespaces

  • env

    A namespace containing environment and browser information.

Functions

  • isAndroid( userAgent ) → Boolean

    static

    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.

  • isGecko( userAgent ) → Boolean

    static

    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

    static

    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

    static

    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

    static

    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.