forked from halo-dev/halo
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: deleting selected text in a list with the backspace key causes t…
…he list to revert (halo-dev#5938) #### What type of PR is this? /kind bug /area editor /milestone 2.16.x #### What this PR does / why we need it: 移除使用 `Backspace` 进行缩进的功能。此功能会导致选中无序列表文本至起始位置时,按 `Backspace` 快捷键会导致无序列表解除当前层级。 #### How to test it? 测试从后往前选中无序列表文本至文本起始位置,然后按下 `Backspace` 快捷键。此时应当只删除文本而不会调整无序列表层级。 #### Which issue(s) this PR fixes: Fixes halo-dev#5925 #### Does this PR introduce a user-facing change? ```release-note 修复默认编辑器中列表使用 Backspace 快捷键删除选中文本的错误行为 ```
- Loading branch information
Showing
2 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ | |
} | ||
|
||
ul { | ||
@apply list-disc; | ||
list-style-type: revert-layer; | ||
} | ||
|
||
code br { | ||
|