mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-24 07:54:07 +01:00
🎨 划选后 esc 用键盘选中后无选中背景 https://github.com/siyuan-note/siyuan/pull/14010
This commit is contained in:
parent
9a77f05c43
commit
9d7011e075
1 changed files with 0 additions and 2 deletions
|
|
@ -1059,9 +1059,7 @@ export class WYSIWYG {
|
|||
!selectElements[0].classList.contains("bq") && !selectElements[0].classList.contains("sb")) {
|
||||
// 只有一个 p 时不选中
|
||||
protyle.selectElement.style.backgroundColor = "transparent";
|
||||
protyle.wysiwyg.element.classList.remove("protyle-wysiwyg--hiderange");
|
||||
} else {
|
||||
protyle.wysiwyg.element.classList.add("protyle-wysiwyg--hiderange");
|
||||
selectElements.forEach(item => {
|
||||
if (!hasClosestByClassName(item, "protyle-wysiwyg__embed")) {
|
||||
item.classList.add("protyle-wysiwyg--select");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue