@udecode/plate-table
Advanced tools
Comparing version 2.0.1 to 3.0.2
# @udecode/plate-table | ||
## 3.0.2 | ||
### Patch Changes | ||
- [#965](https://github.com/udecode/plate/pull/965) [`83aaf31c`](https://github.com/udecode/plate/commit/83aaf31c02b24f388d1f178dcd4b80354ddab773) Thanks [@dylans](https://github.com/dylans)! - insertTable was only inserting header cells | ||
## 2.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -345,3 +345,3 @@ import { getPlatePluginOptions, getPlatePluginType, isElement, getRenderElement } from '@udecode/plate-core'; | ||
return { | ||
type: header ? getPlatePluginType(editor, ELEMENT_TD) : getPlatePluginType(editor, ELEMENT_TH), | ||
type: header ? getPlatePluginType(editor, ELEMENT_TH) : getPlatePluginType(editor, ELEMENT_TD), | ||
children: [{ | ||
@@ -366,3 +366,3 @@ type: getPlatePluginType(editor, ELEMENT_DEFAULT), | ||
match: { | ||
type: [getPlatePluginType(editor, ELEMENT_TD), getPlatePluginType(editor, ELEMENT_TH)] | ||
type: [getPlatePluginType(editor, ELEMENT_TH), getPlatePluginType(editor, ELEMENT_TD)] | ||
} | ||
@@ -369,0 +369,0 @@ }); |
@@ -349,3 +349,3 @@ 'use strict'; | ||
return { | ||
type: header ? plateCore.getPlatePluginType(editor, ELEMENT_TD) : plateCore.getPlatePluginType(editor, ELEMENT_TH), | ||
type: header ? plateCore.getPlatePluginType(editor, ELEMENT_TH) : plateCore.getPlatePluginType(editor, ELEMENT_TD), | ||
children: [{ | ||
@@ -370,3 +370,3 @@ type: plateCore.getPlatePluginType(editor, plateCommon.ELEMENT_DEFAULT), | ||
match: { | ||
type: [plateCore.getPlatePluginType(editor, ELEMENT_TD), plateCore.getPlatePluginType(editor, ELEMENT_TH)] | ||
type: [plateCore.getPlatePluginType(editor, ELEMENT_TH), plateCore.getPlatePluginType(editor, ELEMENT_TD)] | ||
} | ||
@@ -373,0 +373,0 @@ }); |
{ | ||
"name": "@udecode/plate-table", | ||
"version": "2.0.1", | ||
"version": "3.0.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
130041