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

编辑器缩进问题 #6618

Open
simanya2 opened this issue Sep 7, 2024 · 4 comments
Open

编辑器缩进问题 #6618

simanya2 opened this issue Sep 7, 2024 · 4 comments
Assignees
Labels
area/editor Issues or PRs related to the Editor kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@simanya2
Copy link

simanya2 commented Sep 7, 2024

系统信息

版本2.18

使用的哪种方式运行?

Docker

发生了什么?

当先输入列表文字,再插入代码块,上面所有二级以下缩进列表,都会变成一级

复现步骤

1.添加列表
P_2024-09-07_09-57-21

2.插入代码块
P_2024-09-07_09-59-58

3.下面的代码块可以默认缩进吗,这样很直观的就能看到上下标题,原来的展示,会被代码块挡住,不太直观
P_2024-09-07_10-06-36

相关日志输出

No response

附加信息

No response

@LIlGG
Copy link
Member

LIlGG commented Sep 9, 2024

代码块属于块级元素,无法放置在其他元素内部。你可以手动拖拽但默认情况下在新的一行是合理的。

不过在列表上加入其他块级元素,确实不应该改变目标列表的层级。

/kind bug
/area editor

@f2c-ci-robot f2c-ci-robot bot added kind/bug Categorizes issue or PR as related to a bug. area/editor Issues or PRs related to the Editor labels Sep 9, 2024
@simanya2
Copy link
Author

不过在列表上加入其他块级元素,确实不应该改变目标列表的层级。可以把这个问题修复下吗,谢谢

@see-more
Copy link

see-more commented Sep 15, 2024

是不是可以吧List Keymap这个插件移除这样

- foo
- bar

Backspace默认就不会自动回到上一行

- foo
  <-curosr here

这样就可以了

@JohnNiang
Copy link
Member

/assign @LIlGG
/milestone 2.20.x

@f2c-ci-robot f2c-ci-robot bot added this to the 2.20.x milestone Sep 18, 2024
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/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants