mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-24 16:04:06 +01:00
🚨
This commit is contained in:
parent
6e02c3e930
commit
7fb533fa9d
5 changed files with 11 additions and 11 deletions
|
|
@ -185,7 +185,7 @@ const listEnter = (protyle: IProtyle, blockElement: HTMLElement, range: Range) =
|
|||
};
|
||||
|
||||
export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyle) => {
|
||||
const disableElement = isNotEditBlock(blockElement)
|
||||
const disableElement = isNotEditBlock(blockElement);
|
||||
if ((!disableElement || blockElement.classList.contains("hr")) && blockElement.classList.contains("protyle-wysiwyg--select")) {
|
||||
setLastNodeRange(getContenteditableElement(blockElement), range, false);
|
||||
range.collapse(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue