Q:

Google script InlineDrawing class

I'm trying to insert InlineDrawing into table cell. 
According to documentation you can add InlineDrawing to Paragraph. 
so
tr = table.appendTableRow();

var tc1 = tr.appendTableCell();

var tc1.appendParagraph( how to fit new InlineDrawing here? ); 

How to get new instance of inlineDrawing ? How to work with this object ? 
I can't find any online reference about this. 
Thank you for your help. 

A:

Here you go: (credit: https://gist.github.com/bennettscience/cd51762de17c860d6930)
// Don't forget your global variables up top.
// Search through the page elements. Paragraphs are top-level, which is why I start with those.
if( type == DocumentApp.ElementType.PARAGRAPH ){

  // Look for child elements within the paragraph. Inline Drawings are children.
  if(element.asParagraph().getNumChildren() !=0 && element.asParagraph().getChild(0).getType() == DocumentApp.ElementType.INLINE_DRAWING) {

    // For whatever reason, drawings don't have their own methods in the InlineDrawing class. This bit copies and adds it to the bottom of the doc.
    var drawing = element.asParagraph().copy();
    body.appendParagraph(drawing);
  }
}

