mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
This commit is contained in:
parent
f6654f5dde
commit
c813e21537
1 changed files with 3 additions and 1 deletions
|
|
@ -490,7 +490,9 @@ export class Toolbar {
|
|||
// tag 会有零宽空格 https://github.com/siyuan-note/siyuan/issues/12922
|
||||
(item.textContent === Constants.ZWSP && !rangeTypes.includes("img"))) {
|
||||
// ZWSP spin 后会在行内元素外 https://github.com/siyuan-note/siyuan/issues/13871
|
||||
if (item.textContent.startsWith(Constants.ZWSP)) {
|
||||
if (item.textContent.startsWith(Constants.ZWSP) &&
|
||||
// https://github.com/siyuan-note/siyuan/issues/14639
|
||||
item.textContent.length > 1) {
|
||||
newNodes.push(document.createTextNode(Constants.ZWSP));
|
||||
item.textContent = item.textContent.substring(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue