Fix #15: Notes/Description for protagonist sheet
This commit is contained in:
parent
9f13961eaf
commit
4e39c5d0dc
@ -73,6 +73,9 @@ export default class CthulhuEternalProtagonistSheet extends CthulhuEternalActorS
|
|||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
context.tabs = this.#getTabs()
|
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 = {
|
context.tooltipsCharacteristic = {
|
||||||
str: game.i18n.localize("CTHULHUETERNAL.Characteristic.Str"),
|
str: game.i18n.localize("CTHULHUETERNAL.Characteristic.Str"),
|
||||||
dex: game.i18n.localize("CTHULHUETERNAL.Characteristic.Dex"),
|
dex: game.i18n.localize("CTHULHUETERNAL.Characteristic.Dex"),
|
||||||
|
@ -17,11 +17,11 @@
|
|||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
|
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
|
||||||
{{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}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "CTHULHUETERNAL.Label.notes"}}</legend>
|
<legend>{{localize "CTHULHUETERNAL.Label.notes"}}</legend>
|
||||||
{{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}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</section>
|
</section>
|
Loading…
x
Reference in New Issue
Block a user