Item ehnance, fixes on actor sheet

This commit is contained in:
2026-03-08 13:23:11 +01:00
parent aaf965c78a
commit 317c4990bc
7 changed files with 162 additions and 127 deletions

View File

@@ -132,6 +132,7 @@ export default class OathHammerCharacterSheet extends OathHammerActorSheet {
break
case "notes":
context.tab = context.tabs.notes
context.enrichedBackground = await foundry.applications.ux.TextEditor.implementation.enrichHTML(doc.system.background, { async: true })
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(doc.system.description, { async: true })
context.enrichedNotes = await foundry.applications.ux.TextEditor.implementation.enrichHTML(doc.system.notes, { async: true })
break

View File

@@ -5,6 +5,7 @@ export default class OathHammerCharacter extends foundry.abstract.TypeDataModel
const requiredInteger = { required: true, nullable: false, integer: true }
const schema = {}
schema.background = new fields.HTMLField({ required: true, textSearch: true })
schema.description = new fields.HTMLField({ required: true, textSearch: true })
schema.notes = new fields.HTMLField({ required: true, textSearch: true })