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

@ -83,7 +83,7 @@ export const exportConfig = {
<div class="fn__hr"></div>
<input class="b3-text-field fn__block" id="pdfWatermarkStr">
<div class="fn__hr"></div>
<div class="b3-label__text">${window.siyuan.languages.export29}</div>
<div class="b3-label__text"><a href="https://pdfcpu.io/core/watermark#description" target="_blank">${window.siyuan.languages.export29}</a></div>
<div class="fn__hr"></div>
<textarea class="b3-text-field fn__block" id="pdfWatermarkDesc"></textarea>
</div>

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);