Foundry v13 migration
Some checks failed
Release Creation / build (release) Failing after 53s

This commit is contained in:
2025-05-09 22:41:08 +02:00
parent d5eba47ab6
commit 36279aa6eb
25 changed files with 63 additions and 62 deletions

View File

@ -37,7 +37,7 @@ export default class CthulhuEternalVehicleSheet extends CthulhuEternalActorSheet
tabGroups = {
sheet: "equipment",
}
/**
* Prepare an array of form header tabs.
* @returns {Record<string, Partial<ApplicationTab>>}
@ -59,9 +59,9 @@ export default class CthulhuEternalVehicleSheet extends CthulhuEternalActorSheet
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.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
context.enrichedNotes = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.notes, { async: true })
return context
}
@ -78,7 +78,7 @@ export default class CthulhuEternalVehicleSheet extends CthulhuEternalActorSheet
context.tab = context.tabs.equipment
context.weapons = doc.itemTypes.weapon
context.gears = doc.itemTypes.gear
break
break
case "description":
context.tab = context.tabs.description
context.enrichedDescription = await TextEditor.enrichHTML(doc.system.description, { async: true })