mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
ee9df4ba43
commit
ad53100fd1
3 changed files with 12 additions and 3 deletions
|
@ -551,7 +551,7 @@ ${genHintItemHTML(item)}
|
|||
emoji = unicode2Emoji(value) + " ";
|
||||
}
|
||||
insertHTML(protyle.lute.SpinBlockDOM(emoji), protyle);
|
||||
} else if (["「「", "{{"].includes(this.splitChar) || this.splitChar === "#" || this.splitChar === ":") {
|
||||
} else if (["「「", "「『", "『「", "『『", "{{"].includes(this.splitChar) || this.splitChar === "#" || this.splitChar === ":") {
|
||||
if (value === "") {
|
||||
const editElement = getContenteditableElement(nodeElement);
|
||||
if (editElement.textContent === "") {
|
||||
|
|
|
@ -53,6 +53,15 @@ export class Options {
|
|||
}, {
|
||||
key: "「「",
|
||||
hint: hintEmbed,
|
||||
}, {
|
||||
key: "「『",
|
||||
hint: hintEmbed,
|
||||
}, {
|
||||
key: "『「",
|
||||
hint: hintEmbed,
|
||||
}, {
|
||||
key: "『『",
|
||||
hint: hintEmbed,
|
||||
}, {
|
||||
key: "#", // 需在 / 之前,否则 #abc/ 会显示菜单
|
||||
hint: hintTag,
|
||||
|
|
|
@ -1510,7 +1510,7 @@ export class WYSIWYG {
|
|||
event.stopPropagation();
|
||||
return;
|
||||
}
|
||||
if ([":", "(", "【", "(", "[", "{", "「", "#", "/", "、"].includes(event.data)) {
|
||||
if ([":", "(", "【", "(", "[", "{", "「", "『", "#", "/", "、"].includes(event.data)) {
|
||||
protyle.hint.enableExtend = true;
|
||||
}
|
||||
if (event.isComposing || isComposition ||
|
||||
|
@ -1520,7 +1520,7 @@ export class WYSIWYG {
|
|||
return;
|
||||
}
|
||||
this.escapeInline(protyle, range, event);
|
||||
if ((/^\d{1}$/.test(event.data) || event.data === "‘" || event.data === "“")) {
|
||||
if ((/^\d{1}$/.test(event.data) || event.data === "‘" || event.data === "“" || event.data === "「")) {
|
||||
clearTimeout(timeout); // https://github.com/siyuan-note/siyuan/issues/9179
|
||||
timeout = window.setTimeout(() => {
|
||||
input(protyle, blockElement, range, true); // 搜狗拼音数字后面句号变为点;Mac 反向双引号无法输入
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue