fix(trigger-words): edit tag on double click

This commit is contained in:
Will Miao
2026-04-21 22:31:56 +08:00
parent 3c8acdb65e
commit 7fa40023b0
3 changed files with 113 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ describe("TriggerWords HTML Escaping", () => {
expect(html).toContain('data-word="word'with'quotes"');
expect(html).toContain('data-word="<tag>"');
// Check for the onclick handler
expect(html).toContain('onclick="copyTriggerWord(this.dataset.word)"');
// Copy/edit handlers are attached by setupTriggerWordsEditMode, not inline HTML.
expect(html).not.toContain('onclick="copyTriggerWord');
});
});