Report an issue
Class

CKEDITOR.plugins.pastetools.filters.word.images

class

Filtering

Methods

  • extractFromRtf( rtfContent ) → Object[]

    since 4.13.0 private

    Parses RTF content to find embedded images. Please be aware that this method should only return png and jpeg images.

    Parameters

    rtfContent : String

    RTF content to be checked for images.

    Returns

    Object[]

    An array of images found in the rtfContent.

    Properties
    hex : String

    Hexadecimal string of an image embedded in rtfContent.

    type : String

    A string representing the image type. Allowed values: 'image/png', 'image/jpeg'.

  • extractTagsFromHtml( html ) → String[]

    since 4.13.0 private

    Extracts an array of src`` attributes intags from the given HTML.` tags belonging to VML shapes are removed.

    CKEDITOR.plugins.pastefromword.images.extractTagsFromHtml( html );
    // Returns: [ 'http://example-picture.com/random.png', 'http://example-picture.com/another.png' ]
    

    Parameters

    html : String

    A string representing HTML code.

    Returns

    String[]

    An array of strings representing the src attribute of the <img> tags found in html.