Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

perf: disable the editor from pasting excel tables as pictures #873

Merged
merged 2 commits into from
Feb 24, 2023

Conversation

ruibaby
Copy link
Member

@ruibaby ruibaby commented Feb 21, 2023

What type of PR is this?

/kind improvement

What this PR does / why we need it:

禁止在编辑器粘贴 Excel 表格时,将表格转为图片的形式上传。

Which issue(s) this PR fixes:

Fixes halo-dev/halo#3348

Screenshots:

before:

image

after:

image

Special notes for your reviewer:

测试方式:

  1. 使用 Excel 或者 macOS 下的 Numbers 创建一个表格。
  2. 复制整个表格或者某几个单元格,并粘贴到 Halo 的编辑器。
  3. 观察是否有将内容转为图片并上传。

Does this PR introduce a user-facing change?

Console 端禁止在编辑器粘贴 Excel 表格以图片的形式上传。

@f2c-ci-robot f2c-ci-robot bot added kind/improvement Categorizes issue or PR as related to a improvement. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Feb 21, 2023
@vercel
Copy link

vercel bot commented Feb 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
ui ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 21, 2023 at 4:06AM (UTC)

@wan92hen
Copy link
Contributor

/lgtm
image

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Feb 21, 2023
Copy link
Member

@guqing guqing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@ruibaby
Copy link
Member Author

ruibaby commented Feb 23, 2023

ping @halo-dev/sig-halo-console

@wan92hen
Copy link
Contributor

/approve

@ruibaby ruibaby added this to the 2.3.x milestone Feb 24, 2023
Copy link
Member

@JohnNiang JohnNiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Feb 24, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JohnNiang, wan92hen, wzrove

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 24, 2023
@f2c-ci-robot f2c-ci-robot bot merged commit e4b655e into halo-dev:main Feb 24, 2023
@ruibaby ruibaby modified the milestones: 2.3.x, 2.3.0 Feb 24, 2023
@ruibaby ruibaby deleted the feat/editor-paste-excel branch February 24, 2023 10:59
JohnNiang pushed a commit to JohnNiang/halo that referenced this pull request Mar 2, 2023
…dev/console#873)

#### What type of PR is this?

/kind improvement

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

禁止在编辑器粘贴 Excel 表格时,将表格转为图片的形式上传。

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

Fixes halo-dev#3348

#### Screenshots:

before:

<img width="818" alt="image" src="https://user-images.githubusercontent.com/21301288/220243681-eb07502a-0fc5-4e69-9cd3-61c3b89cb542.png">

after:

<img width="815" alt="image" src="https://user-images.githubusercontent.com/21301288/220243630-ca7c2700-ff61-4893-a857-94860e4a899b.png">


#### Special notes for your reviewer:

测试方式:

1. 使用 Excel 或者 macOS 下的 Numbers 创建一个表格。
2. 复制整个表格或者某几个单元格,并粘贴到 Halo 的编辑器。
3. 观察是否有将内容转为图片并上传。

#### Does this PR introduce a user-facing change?

```release-note
Console 端禁止在编辑器粘贴 Excel 表格以图片的形式上传。
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/improvement Categorizes issue or PR as related to a improvement. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

粘贴复制powerpoint表格出现把表格转化成图片
5 participants