Made sure item.toChat enriches descriptions (#1625)

This commit is contained in:
WBHarry 2026-02-02 00:40:09 +01:00 committed by GitHub
parent 668dbdf8f4
commit 491d921a9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -185,7 +185,10 @@ export default class DHItem extends foundry.documents.Item {
tags: this._getTags()
},
actions: item.system.actionsList,
description: this.system.description
description: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.system.description, {
relativeTo: this.parent,
rollData: this.parent?.getRollData() ?? {}
})
};
const msg = {