From ba0269ad3eb85c9dc49429c1fef4ae7234623acf Mon Sep 17 00:00:00 2001 From: Felix Feng Date: Wed, 25 Dec 2024 20:43:21 +0800 Subject: [PATCH] docs --- .../content/docs/cn/components/changelog.mdx | 56 ++++++++++++++++++- apps/www/content/docs/cn/indent-list.mdx | 2 +- .../content/docs/en/components/changelog.mdx | 5 ++ apps/www/content/docs/en/indent-list.mdx | 2 +- 4 files changed, 61 insertions(+), 4 deletions(-) diff --git a/apps/www/content/docs/cn/components/changelog.mdx b/apps/www/content/docs/cn/components/changelog.mdx index 01be3b5abe..dc4c05df4d 100644 --- a/apps/www/content/docs/cn/components/changelog.mdx +++ b/apps/www/content/docs/cn/components/changelog.mdx @@ -10,10 +10,62 @@ toc: true ## 2024年12月 #17 + +### 12月25日 #17.6 + +- `indent-list-toolbar-button`: 移除 `IndentListToolbarButton`,改用 `NumberedIndentListToolbarButton` 和 `BulletedIndentListToolbarButton`。 +- `table-dropdown-menu`: 新的插入表格界面。 + +### 12月23日 #17.5 + +- `table-element`: 修复选择 +- 修改前: `isSelectingCell && '[&_*::selection]:bg-none'` +- 修改后: `isSelectingCell && '[&_*::selection]:!bg-transparent'` + + +### 12月21日 #17.4 + +更新 `tailwind.config.cjs` 以提供更好的 HTML 导出字体支持: + +```ts +fontFamily: { + heading: [ + 'var(--font-heading)', + 'ui-sans-serif', + '-apple-system', + 'BlinkMacSystemFont', + 'Segoe UI Variable Display', + 'Segoe UI', + 'Helvetica', + 'Apple Color Emoji', + 'Arial', + 'sans-serif', + 'Segoe UI Emoji', + 'Segoe UI Symbol', + 'Noto Color Emoji', + ], + mono: ['var(--font-mono)', ...fontFamily.mono], + sans: [ + 'var(--font-sans)', + 'ui-sans-serif', + '-apple-system', + 'BlinkMacSystemFont', + 'Segoe UI Variable Display', + 'Segoe UI', + 'Helvetica', + 'Apple Color Emoji', + 'Arial', + 'sans-serif', + 'Segoe UI Emoji', + 'Segoe UI Symbol', + 'Noto Color Emoji', + ], +``` + ### 12月20日 #17.3 -- `insertColumnGroup`, `toggleColumnGroup`: use `columns` option instead of `layout` -- Remove `with-draggables`. Add [`DraggableAboveNodes`](https://github.com/udecode/plate/pull/3878/files#diff-493c12ebed9c3ef9fd8c3a723909b18ad439a448c0132d2d93e5341ee0888ad2) to `draggable`. Add to `DndPlugin` config: +- `insertColumnGroup`、`toggleColumnGroup`:使用 `columns` 选项替代 `layout` +- 移除 `with-draggables`。将 [`DraggableAboveNodes`](https://github.com/udecode/plate/pull/3878/files#diff-493c12ebed9c3ef9fd8c3a723909b18ad439a448c0132d2d93e5341ee0888ad2) 添加到 `draggable`。添加到 `DndPlugin` 配置中: ```tsx DndPlugin.configure({ render: { aboveNodes: DraggableAboveNodes } }), ``` diff --git a/apps/www/content/docs/cn/indent-list.mdx b/apps/www/content/docs/cn/indent-list.mdx index 50a0c83c72..e26f4ce366 100644 --- a/apps/www/content/docs/cn/indent-list.mdx +++ b/apps/www/content/docs/cn/indent-list.mdx @@ -233,7 +233,7 @@ const plugins = [ 编辑器实例。 - + 要检查的列表样式类型。 diff --git a/apps/www/content/docs/en/components/changelog.mdx b/apps/www/content/docs/en/components/changelog.mdx index f1dcd58d74..8318b69c4f 100644 --- a/apps/www/content/docs/en/components/changelog.mdx +++ b/apps/www/content/docs/en/components/changelog.mdx @@ -10,6 +10,11 @@ Use the [CLI](https://platejs.org/docs/components/cli) to install the latest ver ## December 2024 #17 +### December 25 #17.6 + +- `indent-list-toolbar-button`: Remove `IndentListToolbarButton` use `NumberedIndentListToolbarButton` and `BulletedIndentListToolbarButton` instead. +- `table-dropdown-menu`: new insert table interface. + ### December 23 #17.5 - `table-element`: fix selection diff --git a/apps/www/content/docs/en/indent-list.mdx b/apps/www/content/docs/en/indent-list.mdx index 0102c250d3..701af26392 100644 --- a/apps/www/content/docs/en/indent-list.mdx +++ b/apps/www/content/docs/en/indent-list.mdx @@ -231,7 +231,7 @@ Checks if some of the selected blocks have a specific list style type. The editor instance. - + The list style type to check.