@flozy/editor 9.2.6 → 9.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,8 +100,12 @@ const TableCell = props => {
100
100
  const [openSettings, setOpenSettings] = useState(false);
101
101
  const table = new TableUtil(editor);
102
102
  const tableProps = table.getTableProps();
103
- const [tableNode] = getNodeWithType(editor, "table", path); // getting cannot find the descendant path error, while deleting table because of unknown re-render issue, so wrapping it with try catch
104
- const [rowNode] = getNodeWithType(editor, "table-row", path);
103
+ const [tableNode] = getNodeWithType(editor, "table", {
104
+ at: path
105
+ }); // getting cannot find the descendant path error, while deleting table because of unknown re-render issue, so wrapping it with try catch
106
+ const [rowNode] = getNodeWithType(editor, "table-row", {
107
+ at: path
108
+ });
105
109
  const currentPath = path.slice(-2) || []; // getting last 2 items from path, which gives row and column position of the cell
106
110
  const [row, column] = currentPath;
107
111
  const isFirstRow = row === 0;
@@ -526,12 +526,15 @@ export class TableUtil {
526
526
  const [currentTable, currentTablePath] = tableNode;
527
527
  const [currentCell, currentCellPath] = tableCellNode;
528
528
  const [currentRow, currentRowPath] = tableRowNode;
529
- const startPath = currentCell;
530
- Transforms.setNodes(this.editor, {
531
- cellBgColor: "#FFFFFF"
532
- }, {
533
- at: startPath
534
- });
529
+ // const startPath = currentCellPath;
530
+ // Transforms.setNodes(
531
+ // this.editor,
532
+ // { cellBgColor: "#FFFFFF" },
533
+ // {
534
+ // at: startPath,
535
+ // }
536
+ // );
537
+
535
538
  if (currentTable && currentCell && currentRow) {
536
539
  const currentTableProps = {
537
540
  ...currentTable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "9.2.6",
3
+ "version": "9.2.7",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"