This commit is contained in:
Vanessa 2024-04-25 09:32:51 +08:00
parent 3dcb3bec9e
commit e508557de4

View file

@ -456,7 +456,7 @@ export class Toolbar {
}
inlineElement.setAttribute("data-type", [...new Set(rangeTypes)].join(" "));
inlineElement.textContent = Constants.ZWSP;
// 在 a 元素中 ctrl+m 需继承其链接,也许不需要?没有用户反馈之前先保持现
// 在 a 元素中 ctrl+m 需继承其链接,也许不需要?没有用户反馈之前先保持现
// if (type !== "a" && rangeTypes.includes("a") && nextElement.dataset.type.split(" ").includes("a") &&
// nextElement.isSameNode(previousElement)) {
// inlineElement.setAttribute("data-href", nextElement.getAttribute("data-href"));