paste-from-office/filters/image
module
Functions
_convertHexToBase64( hexString ) → stringinternalmodule:paste-from-office/filters/image~_convertHexToBase64Converts given HEX string to base64 representation.
Parameters
hexString : stringThe HEX string to be converted.
Returns
stringBase64 representation of a given HEX string.
replaceImagesSourceWithBase64( documentFragment, rtfData ) → voidinternalmodule:paste-from-office/filters/image~replaceImagesSourceWithBase64Replaces 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 : ViewDocumentFragmentDocument fragment on which transform images.
rtfData : stringThe RTF data from which images representation will be used.
Returns
void