code: function drawTable(editor) {
  	var cm = editor.codemirror;
  	var stat = getState(cm);
  	var options = editor.options;
  	_replaceSelection(cm, stat.table, options.insertTexts.table);
  }
docs: Action for drawing a table.