Module

paste-from-office/filters/image

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

module

Filtering

Functions

  • internal

    _convertHexToBase64( hexString ) → string

    Converts given HEX string to base64 representation.

    Parameters

    hexString : string

    The HEX string to be converted.

    Returns

    string

    Base64 representation of a given HEX string.

  • replaceImagesSourceWithBase64( documentFragment, rtfData ) → void

    Replaces source attribute of all <img> elements representing regular images (not the Word shapes) with inlined base64 image representation extracted from RTF or Blob data.

    Parameters

    documentFragment : DocumentFragment

    Document fragment on which transform images.

    rtfData : string

    The RTF data from which images representation will be used.

    Returns

    void