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;
}
.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;
}

View File

@ -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()

View File

@ -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") {

View File

@ -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",

View File

@ -40,7 +40,7 @@
</li>
</ol>
{{editor details.biography target="system.details.biography" button=true owner=owner
{{editor biography target="system.details.biography" button=true owner=owner
editable=editable}}
<ol class="items-list">
@ -49,4 +49,4 @@ editable=editable}}
<div class="item-field flex1 right"></div>
</li>
</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>
{{/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 class="tab properties" data-group="primary" data-tab="properties">
{{#if (eq item.type "item")}}