mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -565,6 +565,17 @@ export class Toolbar {
|
||||
});
|
||||
}
|
||||
types = [...new Set(types)];
|
||||
if (types.includes("block-ref") && item.getAttribute("data-subtype") === "d") {
|
||||
// https://github.com/siyuan-note/siyuan/issues/14299
|
||||
if (previousElement.getAttribute("data-id") === item.getAttribute("data-id")) {
|
||||
previousElement.setAttribute("data-subtype", "s");
|
||||
item.setAttribute("data-subtype", "s");
|
||||
}
|
||||
if (nextElement.getAttribute("data-id") === item.getAttribute("data-id")) {
|
||||
nextElement.setAttribute("data-subtype", "s");
|
||||
item.setAttribute("data-subtype", "s");
|
||||
}
|
||||
}
|
||||
if (index === 0 && previousElement && previousElement.nodeType !== 3 &&
|
||||
isArrayEqual(types, (previousElement.getAttribute("data-type") || "").split(" ")) &&
|
||||
hasSameTextStyle(item, previousElement, textObj)) {
|
||||
|
||||
Reference in New Issue
Block a user