Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2023-12-27 21:28:56 +08:00
commit c10f04f74f
5 changed files with 2 additions and 12 deletions

View file

@ -322,9 +322,6 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type
}
if (type === "block") {
inputElement.addEventListener("input", (event: InputEvent) => {
if (event.isComposing) {
return;
}
if (Constants.BLOCK_HINT_KEYS.includes(inputElement.value.substring(0, 2))) {
protyle.toolbar.range = document.createRange();
protyle.toolbar.range.selectNodeContents(cellElements[0].lastChild);