Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Dec 25, 2024
1 parent a4ed2bf commit ba0269a
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 4 deletions.
56 changes: 54 additions & 2 deletions apps/www/content/docs/cn/components/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 } }),
```
Expand Down
2 changes: 1 addition & 1 deletion apps/www/content/docs/cn/indent-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const plugins = [
<APIItem name="editor" type="PlateEditor">
编辑器实例。
</APIItem>
<APIItem name="type" type="string">
<APIItem name="type" type="string | string[]">
要检查的列表样式类型。
</APIItem>
</APIParameters>
Expand Down
5 changes: 5 additions & 0 deletions apps/www/content/docs/en/components/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/www/content/docs/en/indent-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Checks if some of the selected blocks have a specific list style type.
<APIItem name="editor" type="PlateEditor">
The editor instance.
</APIItem>
<APIItem name="type" type="string">
<APIItem name="type" type="string | string[]">
The list style type to check.
</APIItem>
</APIParameters>
Expand Down

0 comments on commit ba0269a

Please sign in to comment.