parameters: (self, data, parent=None)
docstring: Insert text data.
docstring_summary: Insert text data.
docstring_tokens: Insert text data .
function: def insertText(self, data, parent=None):
          """Insert text data."""
          if parent is None:
              parent = self.openElements[-1]
  
          if (not self.insertFromTable or (self.insertFromTable and
                                           self.openElements[-1].name
                                           not in tableInsertModeElements)):
              parent.insertText(data)
          else:
              # We should be in the InTable mode. This means we want to do
              # special magic element rearranging
              parent, insertBefore = self.getTableMisnestedNodePosition()
              parent.insertText(data, insertBefore)
function_tokens: def insertText ( self , data , parent = None ) : if parent is None : parent = self . openElements [ - 1 ] if ( not self . insertFromTable or ( self . insertFromTable and self . openElements [ - 1 ] . name not in tableInsertModeElements ) ) : parent . insertText ( data ) else : # We should be in the InTable mode. This means we want to do # special magic element rearranging parent , insertBefore = self . getTableMisnestedNodePosition ( ) parent . insertText ( data , insertBefore )