🎨 Improve protyle slash (#15648)

fix https://github.com/siyuan-note/siyuan/issues/15647
This commit is contained in:
Jeffrey Chen 2025-08-23 11:23:34 +08:00 committed by GitHub
parent 1e5f514225
commit cd7734ba91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -727,7 +727,7 @@ ${genHintItemHTML(item)}
focusByRange(range);
this.genEmojiHTML(protyle);
return;
} else if (value.indexOf("style") > -1) {
} else if (value.startsWith("style")) {
range.deleteContents();
this.fixImageCursor(range);
nodeElement.setAttribute("style", value.split(Constants.ZWSP)[1] || "");