mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-06 07:31:48 +01:00
This commit is contained in:
parent
2e3489a85a
commit
9aadfe3041
1 changed files with 2 additions and 2 deletions
|
|
@ -1965,8 +1965,8 @@ export class WYSIWYG {
|
|||
item.removeAttribute("select-start");
|
||||
item.removeAttribute("select-end");
|
||||
});
|
||||
const ctrlParentElement = hasClosestByClassName(ctrlElement, "protyle-wysiwyg--select");
|
||||
if (ctrlParentElement && !ctrlElement.isSameNode(ctrlParentElement)) {
|
||||
const ctrlParentElement = hasClosestByClassName(ctrlElement.parentElement, "protyle-wysiwyg--select");
|
||||
if (ctrlParentElement) {
|
||||
ctrlParentElement.classList.remove("protyle-wysiwyg--select");
|
||||
ctrlParentElement.removeAttribute("select-start");
|
||||
ctrlParentElement.removeAttribute("select-end");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue