Fix #19 : Mental disorder description

This commit is contained in:
2025-01-07 17:36:31 +01:00
parent b600148247
commit 33c11e2c05
5 changed files with 35 additions and 11 deletions

View File

@ -18,4 +18,12 @@ export default class CthulhuEternalMentalDisorderSheet extends CthulhuEternalIte
template: "systems/fvtt-cthulhu-eternal/templates/mentaldisorder.hbs",
},
}
/** @override */
async _prepareContext() {
const context = await super._prepareContext()
context.enrichedDescription = await TextEditor.enrichHTML(this.document.system.description, { async: true })
return context
}
}