@udecode/plate-table
Advanced tools
Comparing version 3.0.2 to 3.1.2
# @udecode/plate-table | ||
## 3.1.2 | ||
### Patch Changes | ||
- [#997](https://github.com/udecode/plate/pull/997) [`1244bcb7`](https://github.com/udecode/plate/commit/1244bcb748411e6291d635647c2053b115704eb9) Thanks [@z0al](https://github.com/z0al)! - fix(table): jump to next header cell on TAB | ||
- [#994](https://github.com/udecode/plate/pull/994) [`5651aed7`](https://github.com/udecode/plate/commit/5651aed704d69af85e2dd7d6f850e8dcabcd45f4) Thanks [@z0al](https://github.com/z0al)! - fix(table): only mark first row as table header | ||
## 3.0.2 | ||
@@ -4,0 +12,0 @@ |
@@ -146,3 +146,3 @@ import { getPlatePluginOptions, getPlatePluginType, isElement, getRenderElement } from '@udecode/plate-core'; | ||
const [tableCellNode, tableCellPath] = tableCell; | ||
if (tableCellNode.type !== (getPlatePluginType(editor, ELEMENT_TD) || getPlatePluginType(editor, ELEMENT_TH))) return; | ||
if (tableCellNode.type !== getPlatePluginType(editor, ELEMENT_TD) && tableCellNode.type !== getPlatePluginType(editor, ELEMENT_TH)) return; | ||
const tableRow = getParent(editor, tableCellPath); | ||
@@ -524,3 +524,3 @@ if (!tableRow) return; | ||
}), getEmptyRowNode(editor, { | ||
header, | ||
header: false, | ||
colCount: 2 | ||
@@ -527,0 +527,0 @@ })] |
@@ -150,3 +150,3 @@ 'use strict'; | ||
const [tableCellNode, tableCellPath] = tableCell; | ||
if (tableCellNode.type !== (plateCore.getPlatePluginType(editor, ELEMENT_TD) || plateCore.getPlatePluginType(editor, ELEMENT_TH))) return; | ||
if (tableCellNode.type !== plateCore.getPlatePluginType(editor, ELEMENT_TD) && tableCellNode.type !== plateCore.getPlatePluginType(editor, ELEMENT_TH)) return; | ||
const tableRow = plateCommon.getParent(editor, tableCellPath); | ||
@@ -528,3 +528,3 @@ if (!tableRow) return; | ||
}), getEmptyRowNode(editor, { | ||
header, | ||
header: false, | ||
colCount: 2 | ||
@@ -531,0 +531,0 @@ })] |
{ | ||
"name": "@udecode/plate-table", | ||
"version": "3.0.2", | ||
"version": "3.1.2", | ||
"description": "Table plugin for Plate", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
130702