Skip to content

Commit 6aa99c1

Browse files
committed
1 parent 25130fc commit 6aa99c1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## v0.3.9 2025-03
44

5+
* [Add parameter `nodeElement` to `protyleSlash.callback`](https://github.com/siyuan-note/siyuan/issues/14036)
6+
57
## v0.3.8 2025-02-11
68

79
* [Add plugin util `openSetting`](https://github.com/siyuan-note/siyuan/pull/13761)

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export default class PluginSample extends Plugin {
210210
filter: ["insert emoji 😊", "插入表情 😊", "crbqwx"],
211211
html: `<div class="b3-list-item__first"><span class="b3-list-item__text">${this.i18n.insertEmoji}</span><span class="b3-list-item__meta">😊</span></div>`,
212212
id: "insertEmoji",
213-
callback(protyle: Protyle) {
213+
callback(protyle: Protyle, nodeElement: HTMLElement) {
214214
protyle.insert("😊");
215215
}
216216
}];

0 commit comments

Comments
 (0)