|
@@ -212,7 +212,8 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
|
|
// 粘贴在代码位置
|
|
|
// https://github.com/siyuan-note/siyuan/issues/9142
|
|
|
// https://github.com/siyuan-note/siyuan/issues/9323
|
|
|
- if (nodeElement.querySelector(".protyle-action").contains(range.startContainer)) {
|
|
|
+ // 需排除行内代码 https://github.com/siyuan-note/siyuan/issues/9369
|
|
|
+ if (nodeElement.querySelector(".protyle-action")?.contains(range.startContainer)) {
|
|
|
range.setStart(nodeElement.querySelector(".hljs").firstChild, 0);
|
|
|
}
|
|
|
insertHTML(textPlain, protyle);
|