From edc87a6bc98b6ce6f440b87b094cd3282d66f1d9 Mon Sep 17 00:00:00 2001 From: Beeant Date: Mon, 28 Oct 2024 00:40:24 +0000 Subject: [PATCH] fix: Text actions (bald, italic, code) don't work properly inside a table cell --- .changeset/text-actions-in-table-cell.md | 5 +++++ packages/table/src/react/withTable.ts | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changeset/text-actions-in-table-cell.md diff --git a/.changeset/text-actions-in-table-cell.md b/.changeset/text-actions-in-table-cell.md new file mode 100644 index 0000000000..962d8c9d01 --- /dev/null +++ b/.changeset/text-actions-in-table-cell.md @@ -0,0 +1,5 @@ +--- +"@udecode/plate-table": patch +--- + +fix: [Text actions (bald, italic, code) don't work properly inside a table cell](https://github.com/udecode/plate/issues/3660) \ No newline at end of file diff --git a/packages/table/src/react/withTable.ts b/packages/table/src/react/withTable.ts index 12a0395e61..20ff052e19 100644 --- a/packages/table/src/react/withTable.ts +++ b/packages/table/src/react/withTable.ts @@ -5,7 +5,6 @@ import { withDeleteTable } from './withDeleteTable'; import { withGetFragmentTable } from './withGetFragmentTable'; import { withInsertFragmentTable } from './withInsertFragmentTable'; import { withInsertTextTable } from './withInsertTextTable'; -import { withMarkTable } from './withMarkTable'; import { withSelectionTable } from './withSelectionTable'; import { withSetFragmentDataTable } from './withSetFragmentDataTable'; @@ -17,7 +16,6 @@ export const withTable: ExtendEditor = ({ editor, ...ctx }) => { editor = withInsertTextTable({ editor, ...ctx }); editor = withSelectionTable({ editor, ...ctx }); editor = withSetFragmentDataTable({ editor, ...ctx }); - editor = withMarkTable({ editor, ...ctx }); - + return editor; };