Report an issue
Class

CKEDITOR.plugins.pastefromword.images

class

Filtering

Methods

  • extractFromRtf( rtfContent ) → Object[]

    since 4.8.0 private

    Method 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

    String represent type of image, allowed values: 'image/png', 'image/jpeg'.

  • extractTagsFromHtml( html ) → String[]

    private

    Method extracts array of src attributes in img tags from given HTML. Img 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

    String represent HTML code.

    Returns

    String[]

    Array of strings represent src attribute of img tags found in html.