Module

paste-from-office/filters/utils

@ckeditor/ckeditor5-paste-from-office/src/filters/utils

module

Filtering

Functions

  • internal

    convertCssLengthToPx( value ) → string

    Normalizes CSS length value to 'px'.

    Parameters

    value : string

    Returns

    string
  • internal

    isPx( [ value ] ) → value is string

    Returns true for value with 'px' unit.

    Parameters

    [ value ] : string

    Returns

    value is string
  • internal

    toPx( value ) → string

    Returns a rounded 'px' value.

    Parameters

    value : number

    Returns

    string