- #1796 by @zbeyens –
- Fixes #1795
- Fixes #1794
- Fixes #1793
- Fixes #1791
- Fixes #1798
getTableCellEntry
:- renamed to
getTableEntries
- returns
table
,row
,cell
- is now working when selecting many blocks in a cell
- renamed to
moveSelectionFromCell
:- new option
fromOneCell
- should not do anything when
at
is in a single cell, unlessfromOneCell
istrue
- new option
overrideSelectionFromCell
: Override the new selection if the previous selection and the new one are in different cells
- #1778 by @zbeyens –
- on delete many cells:
- replace cell children by a paragraph then reselect all the selected cells
- on get fragment (copy):
- copying in a single cell should not copy the table anymore
- on insert fragment (paste):
- pasting multiple blocks into many selected cells will replace these cells children by the same blocks
- replace cell children by a paragraph then reselect all the selected cells
- on insert text:
- it should delete the cells content by preserving the cells
- normalize cells:
- wrap cell children in a paragraph if they are texts
- normalize selection:
- it was easy to destroy the table structure when selection goes beyond a table. The current fix is to normalize the selection so it selects the whole table (see the specs)
- specs:
- on delete many cells:
- #1569 by @zbeyens –
- udecode/editor-protocol#32
addRow
deprecated in favor ofinsertTableRow
addColumn
deprecated in favor ofinsertTableColumn
insertTableRow
now selects the cell below selected cell (previously it was selecting the last cell)
- #1560 by @zbeyens –
- fix: tab / untab when composing with IME
- update peerDeps:
"slate": ">=0.78.0"
"slate-react": ">=0.79.0"
- #1554 by @mrganser – fix onKeyDownTable so it only acts with Tab key when selection is within a table, so default or others handlers can work outside
-
getTableGridAbove
: Get sub table above anchor and focusgetTableGridByRange
: Get sub table between 2 cell paths.moveSelectionFromCell
: Move selection by cell unit.getCellTypes
: Get td and th types.getEmptyCellNode
,getEmptyRowNode
,getEmptyTableNode
:cellChildren
optiongetEmptyTableNode
:rowCount
,colCount
optionspreventDeleteTableCell
withDeleteTable
: Prevent cell deletionwithGetFragmentTable
: If selection is in a table, get subtable abovewithInsertFragmentTable
Cell selection:
- udecode/editor-protocol#26
- udecode/editor-protocol#27
- udecode/editor-protocol#28
- udecode/editor-protocol#29
- udecode/editor-protocol#15
- udecode/editor-protocol#17
- udecode/editor-protocol#30
- udecode/editor-protocol#31
- udecode/editor-protocol#12
- udecode/editor-protocol#25
- udecode/editor-protocol#20
Copy/paste:
Delete:
- #1429 by @zbeyens –
TableElement
:- fix undefined case
- fix warning "Unknown event handler property
onRenderContainer
. It will be ignored."
- #1334 by @Pedrobusou – prevent extra nodes from being copy pasted
- #1331 by @Pedrobusou – add missing getPluginType usage
- #1322 by @sctang2020 – fix #1216, set cusor to first cell for newly created table
- #1161 by @zbeyens – Added:
getTableColumnCount
getTableColumnIndex
: Get table column index of a cell node.setTableColSize
TableNodeData: { colSizes?: number[] }
- Updated dependencies [
a6bf8c5e
]:- @udecode/[email protected]
- Updated dependencies [
8aec270f
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
7ee21356
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
503956fd
]:- @udecode/[email protected]
- Updated dependencies [
b22c06aa
]:- @udecode/[email protected]
- Updated dependencies [
58f6fb53
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
6af469cd
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
f1da7267
,35caf35d
]:- @udecode/[email protected]
- @udecode/[email protected]
-
#1006
56b2551b
Thanks @tjramage! - Adds more natural default header option when inserting table columns -
Updated dependencies [
58387c6d
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
f6c58134
]:- @udecode/[email protected]
-
#997
1244bcb7
Thanks @z0al! - fix(table): jump to next header cell on TAB -
#994
5651aed7
Thanks @z0al! - fix(table): only mark first row as table header
- Updated dependencies [
ec4d5b7b
]:- @udecode/[email protected]
-
#918
7d045d8d
Thanks @zbeyens! - addslate-history
as a peerDep -
Updated dependencies [
7d045d8d
]:- @udecode/[email protected]
🎉 The Slate Plugins project has evolved to Plate 🎉
To migrate, install @udecode/plate[-x]
then find and replace all
occurrences of:
slate-plugins
toplate
SlatePlugins
toPlate
SlatePlugin
toPlatePlugin
This is the last version of
@udecode/slate-plugins[-x]
, please install@udecode/plate[-x]
.
- Updated dependencies [
7c26cf32
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
3a3eb1b8
]:- @udecode/[email protected]
- Updated dependencies [
75b39f18
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
abaf4a11
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
d906095d
]:- @udecode/[email protected]
- Updated dependencies [
42360b44
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
6e9068f6
]:- @udecode/[email protected]
- Updated dependencies [
15048e6f
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
b444071e
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
2cf618c3
]:- @udecode/[email protected]
- Updated dependencies [
7cbd7bd9
,806e1632
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
33605a49
,28f30c8a
,75e6d25d
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
dfbde8bd
,dfbde8bd
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
201a7993
]:- @udecode/[email protected]
- @udecode/[email protected]