Report an issue
Module

paste-from-office/filters/image

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

module

Filtering

Functions

  • _convertHexToBase64( hexString ) → String

    protected static

    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 )

    static

    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.