diff --git a/css/bol.css b/css/bol.css index 36b632c..76bb658 100644 --- a/css/bol.css +++ b/css/bol.css @@ -389,16 +389,16 @@ ul.no-bullets { background-color: lightgray; } .bol h1.form-header { - font-size: 2.5em; + font-size: 2.2em; font-weight: 700; } .bol h2.form-header { - font-size: 2em; + font-size: 1.8em; font-weight: 500; border-bottom: 1px groove #eeede0; } .bol h3.form-header { - font-size: 1.5em; + font-size: 1.2em; font-weight: 500; border-bottom: 1px groove #eeede0; } diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index 895438b..3d02b03 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -12,7 +12,7 @@ export class BoLActorSheet extends ActorSheet { return mergeObject(super.defaultOptions, { classes: ["bol", "sheet", "actor"], template: "systems/bol/templates/actor/actor-sheet.hbs", - width: 600, + width: 860, height: 600, dragDrop: [{ dragSelector: ".items-list .item", dropSelector: null }], tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "stats" }] @@ -114,7 +114,7 @@ export class BoLActorSheet extends ActorSheet { /* -------------------------------------------- */ /** @override */ - getData(options) { + async getData(options) { const data = super.getData(options) const actorData = duplicate(data) let formData = duplicate(data) @@ -148,8 +148,9 @@ export class BoLActorSheet extends ActorSheet { formData.editScore = this.options.editScore formData.useBougette = BoLUtility.getUseBougette() formData.charType = this.actor.getCharType() - formData.villainy = this.actor.getVillainy() - + formData.villainy = this.actor.getVillainy() + formData.biography = await TextEditor.enrichHTML(this.object.system.details.biography, {async: true}) + formData.notes = await TextEditor.enrichHTML(this.object.system.details.notes, {async: true}) formData.isSorcerer = this.actor.isSorcerer() formData.isAlchemist = this.actor.isAlchemist() formData.isPriest = this.actor.isPriest() diff --git a/module/item/item-sheet.js b/module/item/item-sheet.js index 7439f6d..b20fc90 100644 --- a/module/item/item-sheet.js +++ b/module/item/item-sheet.js @@ -19,7 +19,7 @@ export class BoLItemSheet extends ItemSheet { /* -------------------------------------------- */ /** @override */ - getData(options) { + async getData(options) { const data = super.getData(options) let itemData = duplicate(data.document) data.config = game.bol.config @@ -27,6 +27,7 @@ export class BoLItemSheet extends ItemSheet { data.category = itemData.system.category data.isGM = game.user.isGM; data.itemProperties = this.item.itemProperties; + data.description = await TextEditor.enrichHTML(this.object.system.description, {async: true}) // Dynamic default data fix/adapt if (itemData.type == "item") { diff --git a/system.json b/system.json index d781fc3..cfb9247 100644 --- a/system.json +++ b/system.json @@ -14,7 +14,7 @@ ], "url": "https://www.uberwald.me/gitea/public/bol", "license": "LICENSE.txt", - "version": "10.1.4", + "version": "10.1.5", "compatibility": { "minimum": "10" }, @@ -192,7 +192,7 @@ ], "socket": true, "manifest": "https://www.uberwald.me/gitea/public/bol/raw/v10/system.json", - "download": "https://www.uberwald.me/gitea/public/bol/archive/bol-v10.1.4.zip", + "download": "https://www.uberwald.me/gitea/public/bol/archive/bol-v10.1.5.zip", "background": "systems/images/map_lemurie.webp", "gridDistance": 1.5, "gridUnits": "m", diff --git a/templates/actor/parts/tabs/actor-biodata.hbs b/templates/actor/parts/tabs/actor-biodata.hbs index ff82309..cb83926 100644 --- a/templates/actor/parts/tabs/actor-biodata.hbs +++ b/templates/actor/parts/tabs/actor-biodata.hbs @@ -40,7 +40,7 @@ -{{editor details.biography target="system.details.biography" button=true owner=owner +{{editor biography target="system.details.biography" button=true owner=owner editable=editable}}