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

默认编辑器的一些问题 #4447

Closed
Sakura-LF opened this issue Aug 20, 2023 · 4 comments
Closed

默认编辑器的一些问题 #4447

Sakura-LF opened this issue Aug 20, 2023 · 4 comments
Labels
area/editor Issues or PRs related to the Editor kind/improvement Categorizes issue or PR as related to a improvement.

Comments

@Sakura-LF
Copy link
Contributor

是什么版本出现了此问题?

一直都有

使用的什么数据库?

MySQL 8.x

使用的哪种方式部署?

Docker Compose

在线站点地址

No response

发生了什么?

  1. 代码块里面无法使用 tab 缩进

  2. 编辑文章时候一直按空格或者退格会卡 , 文章字多了之后也会卡
    a. edge 稍微好一点 , chrome 卡的根本没法用

  3. 图片手动缩放应该为等比例缩放

  4. 行内代码按左右键无法退出 , 必须还要按一次 ctrl + e

  5. 在代码块里面 ctrl + a 应该复制整个代码 , 而不是整个文章 , 或者像发布后那样提供一个复制整个代码的按钮

  6. 代码块内容为空时按 / 会调出列表
    image

  7. 默认编辑器里面的代码格式和发布后的代码块格式不一样
    a. 直接在编辑器里面和从 IDE 复制过来的格式 , 编辑页面是相同的 , 发布之后格式不一样
    b. 也可能是主题的问题 , 有些主题的代码块缩进2个空格 , 有些主题会缩进8个空格
    image

image

相关日志输出

No response

附加信息

No response

@JohnNiang
Copy link
Member

/area editor
/kind improvement

@f2c-ci-robot f2c-ci-robot bot added area/editor Issues or PRs related to the Editor kind/improvement Categorizes issue or PR as related to a improvement. labels Aug 20, 2023
@ruibaby
Copy link
Member

ruibaby commented Aug 24, 2023

编辑文章时候一直按空格或者退格会卡 , 文章字多了之后也会卡 a. edge 稍微好一点 , chrome 卡的根本没法用

这个问题已经在 #4445 中优化,会随着 2.9 发布。

图片手动缩放应该为等比例缩放

已经在 halo-sigs/richtext-editor#33 中优化,会随着 2.9 发布。

建议提交 issue 时,各个无关系的问题分开提交 issue,方便管理和跟踪,这种“汇总”型的 issue 很容易随着时间被忽略。

f2c-ci-robot bot pushed a commit to halo-sigs/richtext-editor that referenced this issue Aug 25, 2023
#### What type of PR is this?

/kind feature
/aear editor

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

为编辑器中的 Head 及段落增加了 Tab 键缩进的扩展,并为代码块增加了缩进。可以使用 `Tab` 键进行缩进,使用 `Shift + Tab` 组合键进行缩进回退。

#### How to test it?

1. 检查标题及普通段落是否能够正常进行缩进以及撤销缩进。
2. 使用代码块,查看是否能够正常进行缩进以及撤销缩进。
3. 检查其他编辑器组件是否会被影响。

上述部分均可测试选中部分内容及光标焦点位置,查看是否符合预期。

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

See [#4447](halo-dev/halo#4447)
See [#4380](halo-dev/halo#4380)

#### Does this PR introduce a user-facing change?
```release-note
编辑器标题、段落及代码块增加 Tab 快捷键缩进
```
f2c-ci-robot bot pushed a commit to halo-sigs/richtext-editor that referenced this issue Sep 12, 2023
…t the code (#43)

#### What type of PR is this?

/kind improvement

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

在代码块中使用 ctrl + a / command + a 时,只会选中当前代码块中的内容而不是编辑器的全部内容

#### How to test it?

1. 创建一个代码块并编辑一些文本。
2. 在代码块中按 ctrl + a / command + a,查看选中的是否仅为代码块中的文本

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

Ref halo-dev/halo#4447
Ref halo-dev/halo#4232

#### Does this PR introduce a user-facing change?
```release-note
在代码块中使用全选快捷键将只会选中代码
```
@ruibaby
Copy link
Member

ruibaby commented Sep 27, 2023

以上提到的问题都已经在 #4669 中优化。

/close

@f2c-ci-robot f2c-ci-robot bot closed this as completed Sep 27, 2023
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Sep 27, 2023

@ruibaby: Closing this issue.

In response to this:

以上提到的问题都已经在 #4669 中优化。

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

No branches or pull requests

3 participants