mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 22:38:49 +01:00
This commit is contained in:
parent
931f818ca6
commit
c01ba53c9b
1 changed files with 4 additions and 0 deletions
|
|
@ -42,7 +42,11 @@ const listEnter = (protyle: IProtyle, blockElement: HTMLElement, range: Range) =
|
|||
if (listItemElement.parentElement.classList.contains("protyle-wysiwyg")) {
|
||||
return true;
|
||||
}
|
||||
// https://github.com/siyuan-note/siyuan/issues/8935
|
||||
const wbrElement = document.createElement("wbr")
|
||||
range.insertNode(wbrElement)
|
||||
const html = listItemElement.parentElement.outerHTML;
|
||||
wbrElement.remove();
|
||||
let newElement = genListItemElement(listItemElement, -1, true);
|
||||
if (!blockElement.previousElementSibling.classList.contains("protyle-action")) {
|
||||
// 列表项中有多个块,最后一个块为空,换行应进行缩进
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue