Enable links in editor

This commit is contained in:
sladecraven 2022-09-27 20:47:30 +02:00
parent 9631e5e72a
commit 895aa01419
6 changed files with 15 additions and 13 deletions

View File

@ -389,16 +389,16 @@ ul.no-bullets {
background-color: lightgray; background-color: lightgray;
} }
.bol h1.form-header { .bol h1.form-header {
font-size: 2.5em; font-size: 2.2em;
font-weight: 700; font-weight: 700;
} }
.bol h2.form-header { .bol h2.form-header {
font-size: 2em; font-size: 1.8em;
font-weight: 500; font-weight: 500;
border-bottom: 1px groove #eeede0; border-bottom: 1px groove #eeede0;
} }
.bol h3.form-header { .bol h3.form-header {
font-size: 1.5em; font-size: 1.2em;
font-weight: 500; font-weight: 500;
border-bottom: 1px groove #eeede0; border-bottom: 1px groove #eeede0;
} }

View File

@ -12,7 +12,7 @@ export class BoLActorSheet extends ActorSheet {
return mergeObject(super.defaultOptions, { return mergeObject(super.defaultOptions, {
classes: ["bol", "sheet", "actor"], classes: ["bol", "sheet", "actor"],
template: "systems/bol/templates/actor/actor-sheet.hbs", template: "systems/bol/templates/actor/actor-sheet.hbs",
width: 600, width: 860,
height: 600, height: 600,
dragDrop: [{ dragSelector: ".items-list .item", dropSelector: null }], dragDrop: [{ dragSelector: ".items-list .item", dropSelector: null }],
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "stats" }] tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "stats" }]
@ -114,7 +114,7 @@ export class BoLActorSheet extends ActorSheet {
/* -------------------------------------------- */ /* -------------------------------------------- */
/** @override */ /** @override */
getData(options) { async getData(options) {
const data = super.getData(options) const data = super.getData(options)
const actorData = duplicate(data) const actorData = duplicate(data)
let formData = duplicate(data) let formData = duplicate(data)
@ -148,8 +148,9 @@ export class BoLActorSheet extends ActorSheet {
formData.editScore = this.options.editScore formData.editScore = this.options.editScore
formData.useBougette = BoLUtility.getUseBougette() formData.useBougette = BoLUtility.getUseBougette()
formData.charType = this.actor.getCharType() 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.isSorcerer = this.actor.isSorcerer()
formData.isAlchemist = this.actor.isAlchemist() formData.isAlchemist = this.actor.isAlchemist()
formData.isPriest = this.actor.isPriest() formData.isPriest = this.actor.isPriest()

View File

@ -19,7 +19,7 @@ export class BoLItemSheet extends ItemSheet {
/* -------------------------------------------- */ /* -------------------------------------------- */
/** @override */ /** @override */
getData(options) { async getData(options) {
const data = super.getData(options) const data = super.getData(options)
let itemData = duplicate(data.document) let itemData = duplicate(data.document)
data.config = game.bol.config data.config = game.bol.config
@ -27,6 +27,7 @@ export class BoLItemSheet extends ItemSheet {
data.category = itemData.system.category data.category = itemData.system.category
data.isGM = game.user.isGM; data.isGM = game.user.isGM;
data.itemProperties = this.item.itemProperties; data.itemProperties = this.item.itemProperties;
data.description = await TextEditor.enrichHTML(this.object.system.description, {async: true})
// Dynamic default data fix/adapt // Dynamic default data fix/adapt
if (itemData.type == "item") { if (itemData.type == "item") {

View File

@ -14,7 +14,7 @@
], ],
"url": "https://www.uberwald.me/gitea/public/bol", "url": "https://www.uberwald.me/gitea/public/bol",
"license": "LICENSE.txt", "license": "LICENSE.txt",
"version": "10.1.4", "version": "10.1.5",
"compatibility": { "compatibility": {
"minimum": "10" "minimum": "10"
}, },
@ -192,7 +192,7 @@
], ],
"socket": true, "socket": true,
"manifest": "https://www.uberwald.me/gitea/public/bol/raw/v10/system.json", "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", "background": "systems/images/map_lemurie.webp",
"gridDistance": 1.5, "gridDistance": 1.5,
"gridUnits": "m", "gridUnits": "m",

View File

@ -40,7 +40,7 @@
</li> </li>
</ol> </ol>
{{editor details.biography target="system.details.biography" button=true owner=owner {{editor biography target="system.details.biography" button=true owner=owner
editable=editable}} editable=editable}}
<ol class="items-list"> <ol class="items-list">
@ -49,4 +49,4 @@ editable=editable}}
<div class="item-field flex1 right"></div> <div class="item-field flex1 right"></div>
</li> </li>
</ol> </ol>
{{editor details.notes target="system.details.notes" button=true owner=owner editable=editable}} {{editor notes target="system.details.notes" button=true owner=owner editable=editable}}

View File

@ -20,7 +20,7 @@
</div> </div>
{{/if}} {{/if}}
{{editor item.system.description target="system.description" button=true owner=owner editable=editable}} {{editor description target="system.description" button=true owner=owner editable=editable}}
</div> </div>
<div class="tab properties" data-group="primary" data-tab="properties"> <div class="tab properties" data-group="primary" data-tab="properties">
{{#if (eq item.type "item")}} {{#if (eq item.type "item")}}