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
pngandjpegimages.Parameters
rtfContent : StringRTF content to be checked for images.
Returns
Object[]An array of images found in the
rtfContent.Propertieshex : StringHexadecimal string of an image embedded in
rtfContent.type : StringString 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 : StringString represent HTML code.
Returns
String[]Array of strings represent src attribute of img tags found in
html.