mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 03:48:48 +01:00
This commit is contained in:
parent
9cc9a2862a
commit
1c00b91aa7
1 changed files with 3 additions and 1 deletions
|
|
@ -493,7 +493,9 @@ export class Toolbar {
|
|||
hasSameTextStyle(item, nextElement, textObj)) {
|
||||
nextIndex = item.textContent.length;
|
||||
nextElement.innerHTML = item.textContent + nextElement.innerHTML;
|
||||
} else if (item.textContent !== Constants.ZWSP) {
|
||||
} else if (item.textContent !== Constants.ZWSP ||
|
||||
// tag 会有零宽空格 https://github.com/siyuan-note/siyuan/issues/12922
|
||||
(item.textContent === Constants.ZWSP && !rangeTypes.includes("img"))) {
|
||||
const inlineElement = document.createElement("span");
|
||||
inlineElement.setAttribute("data-type", type);
|
||||
inlineElement.textContent = item.textContent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue