diff --git a/module/applications/sheets/protagonist-sheet.mjs b/module/applications/sheets/protagonist-sheet.mjs index 350e9ba..530c3a2 100644 --- a/module/applications/sheets/protagonist-sheet.mjs +++ b/module/applications/sheets/protagonist-sheet.mjs @@ -73,6 +73,9 @@ export default class CthulhuEternalProtagonistSheet extends CthulhuEternalActorS const context = await super._prepareContext() context.tabs = this.#getTabs() + context.enrichedDescription = await TextEditor.enrichHTML(this.document.system.description, { async: true }) + context.enrichedNotes = await TextEditor.enrichHTML(this.document.system.notes, { async: true }) + context.tooltipsCharacteristic = { str: game.i18n.localize("CTHULHUETERNAL.Characteristic.Str"), dex: game.i18n.localize("CTHULHUETERNAL.Characteristic.Dex"), diff --git a/templates/protagonist-biography.hbs b/templates/protagonist-biography.hbs index 1fdb9c7..c80ff85 100644 --- a/templates/protagonist-biography.hbs +++ b/templates/protagonist-biography.hbs @@ -17,11 +17,11 @@
{{localize "CTHULHUETERNAL.Label.description"}} - {{formInput systemFields.description enriched=description value=system.description name="system.description" toggled=true}} + {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
{{localize "CTHULHUETERNAL.Label.notes"}} - {{formInput systemFields.notes enriched=notes value=system.notes name="system.notes" toggled=true}} + {{formInput systemFields.notes enriched=enrichedNotes value=system.notes name="system.notes" toggled=true}}
\ No newline at end of file