NEWCKEditor AI is here!
Sign up (with export icon)

paste-from-office/filters/image

Api-module iconmodule

Functions

  • Chevron-right icon

    _convertHexToBase64( hexString ) → string
    internal

    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.

  • Chevron-right icon

    replaceImagesSourceWithBase64( documentFragment, rtfData ) → void
    internal

    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 : ViewDocumentFragment

    Document fragment on which transform images.

    rtfData : string

    The RTF data from which images representation will be used.

    Returns

    void