Report an issue
Module

utils/env

@ckeditor/ckeditor5-utils/src/env

module

Filtering

Namespaces

  • env

    A namespace containing environment and browser information.

Functions

  • isEdge( userAgent ) → Boolean

    static

    Checks if User Agent represented by the string is Microsoft Edge.

    Parameters

    userAgent : String

    Lowercase navigator.userAgent string.

    Returns

    Boolean

    Whether User Agent is Edge 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.