$selectTableCellStart function

void $selectTableCellStart(
  1. TableCellNode cell
)

Places a collapsed caret at the start of cell's content.

Must be called inside an update.

Implementation

void $selectTableCellStart(TableCellNode cell) {
  final first = cell.getFirstChild();
  if (first is ElementNode) {
    first.selectStart();
    return;
  }
  cell.selectStart();
}