Enable links in editor
This commit is contained in:
parent
c34bfbf229
commit
f08ec8eaff
@ -53,6 +53,7 @@ export class MournbladeActorSheet extends ActorSheet {
|
||||
metier: duplicate(this.actor.getMetier() || {}),
|
||||
combat: this.actor.getCombatValues(),
|
||||
equipements: duplicate(this.actor.getEquipments()),
|
||||
description: await TextEditor.enrichHTML(this.object.system.biodata.description, {async: true}),
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
editScore: this.options.editScore,
|
||||
|
@ -63,10 +63,14 @@ export class MournbladeItemSheet extends ItemSheet {
|
||||
limited: this.object.limited,
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
||||
mr: (this.object.type == 'specialisation'),
|
||||
isGM: game.user.isGM
|
||||
}
|
||||
|
||||
if ( objectData.type =="don") {
|
||||
sacrifice = await TextEditor.enrichHTML(this.object.system.sacrifice, {async: true})
|
||||
}
|
||||
//this.options.editable = !(this.object.origin == "embeddedItem");
|
||||
console.log("ITEM DATA", formData, this);
|
||||
return formData;
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "fvtt-mournblade",
|
||||
"description": "Mournblade RPG for FoundryVTT",
|
||||
"version": "10.0.5",
|
||||
"version": "10.0.6",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Uberwald/LeRatierBretonnien",
|
||||
@ -15,7 +15,7 @@
|
||||
"gridUnits": "m",
|
||||
"license": "LICENSE.txt",
|
||||
"manifest": "https://www.uberwald.me/gitea/public/fvtt-mournblade/raw/branch/v10/system.json",
|
||||
"download": "https://www.uberwald.me/gitea/public/fvtt-mournblade/archive/fvtt-mournblade-10.0.5.zip",
|
||||
"download": "https://www.uberwald.me/gitea/public/fvtt-mournblade/archive/fvtt-mournblade-10.0.6.zip",
|
||||
"packs": [
|
||||
{
|
||||
"type": "Item",
|
||||
|
@ -532,7 +532,7 @@
|
||||
<h3>Description</h3>
|
||||
</span>
|
||||
<div class="medium-editor item-text-long-line">
|
||||
{{editor data.biodata.description target="system.biodata.description" button=true owner=owner editable=editable}}
|
||||
{{editor description target="system.biodata.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -32,7 +32,7 @@
|
||||
</span>
|
||||
|
||||
<div class="small-editor item-text-long-line">
|
||||
{{editor data.sacrifice target="system.sacrifice" button=true owner=owner editable=editable}}
|
||||
{{editor sacrifice target="system.sacrifice" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
|
||||
|
@ -2,5 +2,5 @@
|
||||
<h3>Description</h3>
|
||||
</span>
|
||||
<div class="medium-editor item-text-long-line">
|
||||
{{editor data.description target="system.description" button=true owner=owner editable=editable}}
|
||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user