"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const slateReact = require("slate-react");
const Slate = require("slate");
const selectTableCellContents = (editor, table, rowIndex, columnIndex) => {
  if (!Array.isArray(table)) {
    table = slateReact.ReactEditor.findPath(editor, table);
  }
  Slate.Transforms.select(editor, {
    anchor: Slate.Editor.start(editor, [...table, rowIndex, columnIndex]),
    focus: Slate.Editor.end(editor, [...table, rowIndex, columnIndex])
  });
};
const getTableCellCoordinates = (editor, element) => {
  const cellPath = slateReact.ReactEditor.findPath(editor, element);
  return cellPath.slice(-2);
};
exports.getTableCellCoordinates = getTableCellCoordinates;
exports.selectTableCellContents = selectTableCellContents;
//# sourceMappingURL=TableElementSelection.cjs.map
