This commit is contained in:
parent
421a80071f
commit
e2eca1186d
1 changed files with 3 additions and 0 deletions
|
@ -1020,6 +1020,9 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
if (!selectText.trim() && (nodeElement.querySelector("tr") || nodeElement.querySelector("span"))) {
|
||||
// 没选中时,都是纯文本就创建子文档 https://ld246.com/article/1663073488381/comment/1664804353295#comments
|
||||
} else {
|
||||
if (!selectText.trim()) {
|
||||
selectAll(protyle, nodeElement, range);
|
||||
}
|
||||
newFileBySelect(selectText.trim() ? selectText.trim() : protyle.lute.BlockDOM2Content(nodeElement.outerHTML), protyle);
|
||||
}
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Add table
Reference in a new issue