|
@@ -176,6 +176,9 @@ export class WYSIWYG {
|
|
|
if (inputData === "<" || inputData === ">") {
|
|
|
// 使用 inlineElement.innerHTML 会出现 https://ld246.com/article/1627185027423 中的第2个问题
|
|
|
dataLength = 4;
|
|
|
+ } else if (inputData === "&") {
|
|
|
+ // https://github.com/siyuan-note/siyuan/issues/12239
|
|
|
+ dataLength = 5;
|
|
|
}
|
|
|
// https://github.com/siyuan-note/siyuan/issues/5924
|
|
|
if (currentTypes.length > 0 && range.toString() === "" && range.startOffset === inputData.length &&
|