This commit is contained in:
Liang Ding 2023-03-03 23:55:48 +08:00
parent 1a0f176a05
commit 9a67ec3c09
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
7 changed files with 21 additions and 6 deletions

View file

@ -569,7 +569,11 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
}, (response) => {
dialog.destroy();
focusByRange(protyle.toolbar.range);
insertHTML(`${inputElement.value}\n\n${response.data}`, protyle, true);
let respContent = "";
if (response.data && "" !== response.data) {
respContent = "\n\n" + response.data;
}
insertHTML(`${inputElement.value}${respContent}`, protyle, true);
});
});
return;