mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -186,7 +186,7 @@ const listEnter = (protyle: IProtyle, blockElement: HTMLElement, range: Range) =
|
||||
|
||||
export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyle) => {
|
||||
const disableElement = isNotEditBlock(blockElement);
|
||||
if ((!disableElement || blockElement.classList.contains("hr")) && blockElement.classList.contains("protyle-wysiwyg--select")) {
|
||||
if (!disableElement && blockElement.classList.contains("protyle-wysiwyg--select")) {
|
||||
setLastNodeRange(getContenteditableElement(blockElement), range, false);
|
||||
range.collapse(false);
|
||||
blockElement.classList.remove("protyle-wysiwyg--select");
|
||||
|
||||
Reference in New Issue
Block a user