Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

默认富文本编辑器的表格列宽显示问题 #5138

Closed
xueqidove opened this issue Jan 2, 2024 · 1 comment · Fixed by #5176
Closed

默认富文本编辑器的表格列宽显示问题 #5138

xueqidove opened this issue Jan 2, 2024 · 1 comment · Fixed by #5176
Labels
area/console Issues or PRs related to the Halo Console area/editor Issues or PRs related to the Editor kind/improvement Categorizes issue or PR as related to a improvement.

Comments

@xueqidove
Copy link

System information

在线体验环境:https://demo.halo.run/console/actuator
版本号:[2.11.2]

What is the project operation method?

Docker

Your site address.

https://demo.halo.run/console

What happened?

表格的展示问题,在编辑页面调整好了行列宽度,比如A宽B窄,但发布后可能A窄B宽,找不到规律,导致视觉上字少的反而很宽,字多的却窄窄的,很难看。
默认Markdown编辑器的编辑页面:
image

预览效果
image

Relevant log output

No response

Additional information

No response

@LIlGG
Copy link
Member

LIlGG commented Jan 2, 2024

目前对于富文本编辑器生成的 table HTML 没有包含 width 内联样式,可能需要增加。

/retitle 默认富文本编辑器的表格列宽显示问题

/kind improvement
/area console
/area editor

@f2c-ci-robot f2c-ci-robot bot added the kind/improvement Categorizes issue or PR as related to a improvement. label Jan 2, 2024
@f2c-ci-robot f2c-ci-robot bot changed the title 默认MarkDown编辑器的表格列宽显示问题 默认富文本编辑器的表格列宽显示问题 Jan 2, 2024
@f2c-ci-robot f2c-ci-robot bot added area/console Issues or PRs related to the Halo Console area/editor Issues or PRs related to the Editor labels Jan 2, 2024
f2c-ci-robot bot pushed a commit that referenced this issue Jan 18, 2024
#### What type of PR is this?

/kind improvmenet
/area editor
/milestone 2.12.x

#### What this PR does / why we need it:

为默认编辑器 table 组件渲染后的结果中增加 `colgroup`,并为 table 增加 `width` 与 `minWidth` 属性。
用于解决渲染完成之后的 table html 宽度与编辑时不一致的问题。

#### How to test it?

拖拽修改默认编辑器表格列宽,查看生成后的 html 列宽是否同样发生了变化,并且查看生成的 html 结构下是否具有 `colgroup` html 元素。

#### Which issue(s) this PR fixes:

Fixes #5138 

#### Does this PR introduce a user-facing change?
```release-note
为默认富文本编辑器 table 组件渲染后的 html 增加 colgroup 元素与 width 属性
```
LIlGG added a commit to LIlGG/halo that referenced this issue Jan 19, 2024
/kind improvmenet
/area editor
/milestone 2.12.x

为默认编辑器 table 组件渲染后的结果中增加 `colgroup`,并为 table 增加 `width` 与 `minWidth` 属性。
用于解决渲染完成之后的 table html 宽度与编辑时不一致的问题。

拖拽修改默认编辑器表格列宽,查看生成后的 html 列宽是否同样发生了变化,并且查看生成的 html 结构下是否具有 `colgroup` html 元素。

Fixes halo-dev#5138

```release-note
为默认富文本编辑器 table 组件渲染后的 html 增加 colgroup 元素与 width 属性
```

feat: add search and replace

feat: add search and replace

feat: add search and replace

feat: add search and replace

feat: add search and replace

feat: add search and replace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/console Issues or PRs related to the Halo Console area/editor Issues or PRs related to the Editor kind/improvement Categorizes issue or PR as related to a improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants