From cb10c803f9e7bb409aaa02b36dbbee6ee1a6dbc8 Mon Sep 17 00:00:00 2001 From: Mykhailo Budiakov Date: Tue, 9 Sep 2025 08:33:57 +0300 Subject: [PATCH 1/5] fix 263 - edit bond --- templates/item/item-bond-sheet.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/item/item-bond-sheet.html b/templates/item/item-bond-sheet.html index 3798876..f533cd3 100644 --- a/templates/item/item-bond-sheet.html +++ b/templates/item/item-bond-sheet.html @@ -6,16 +6,14 @@ {{localize 'DG.Bonds.Name'}}: - - + {{localize 'DG.Bonds.Score'}}: - + title="{{localize 'DG.ItemWindow.Bonds.ScoreTooltip'}}" /> + {{localize 'DG.Bonds.Relationship'}}: - + @@ -26,11 +24,13 @@ {{!-- Sheet Body --}} -
+
{{!-- Description Tab --}}
- {{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}} +
+ {{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}} +
From 54c8aca78e4ca16178ac89e69d95635d31c90e91 Mon Sep 17 00:00:00 2001 From: Mykhailo Budiakov Date: Tue, 9 Sep 2025 09:30:02 +0300 Subject: [PATCH 2/5] fix 263 - add editor-host to other sheets --- templates/item/item-armor-sheet.html | 22 +++++++------ templates/item/item-bond-sheet.html | 3 +- templates/item/item-gear-sheet.html | 21 +++++++------ templates/item/item-motivation-sheet.html | 38 ++++++++++++----------- templates/item/item-ritual-sheet.html | 30 +++++++++--------- templates/item/item-tome-sheet.html | 28 +++++++++-------- 6 files changed, 75 insertions(+), 67 deletions(-) diff --git a/templates/item/item-armor-sheet.html b/templates/item/item-armor-sheet.html index 1b38c2f..b7a7f33 100644 --- a/templates/item/item-armor-sheet.html +++ b/templates/item/item-armor-sheet.html @@ -1,14 +1,14 @@
-
+
- + -
+
{{localize 'DG.Bonds.Name'}}: - + {{localize 'DG.ItemWindow.Armor.Expense'}}: - + {{localize 'DG.ItemWindow.Armor.Equipped'}}: - - + +
- +
{{localize 'DG.ItemWindow.Armor.ArmorRating'}}:
- +
{{!-- Sheet Tab Navigation --}} @@ -42,7 +42,9 @@ {{!-- Description Tab --}}
- {{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}} +
+ {{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}} +
diff --git a/templates/item/item-bond-sheet.html b/templates/item/item-bond-sheet.html index f533cd3..23b59f7 100644 --- a/templates/item/item-bond-sheet.html +++ b/templates/item/item-bond-sheet.html @@ -24,8 +24,7 @@ {{!-- Sheet Body --}} -
- +
{{!-- Description Tab --}}
diff --git a/templates/item/item-gear-sheet.html b/templates/item/item-gear-sheet.html index 85bd83d..f656bf9 100644 --- a/templates/item/item-gear-sheet.html +++ b/templates/item/item-gear-sheet.html @@ -3,13 +3,13 @@
- +
- + {{localize 'DG.Bonds.Name'}}: - - + + {{localize 'DG.ItemWindow.Gear.Expense'}}: - + {{localize 'DG.ItemWindow.Gear.Equipped'}}: - +
- + {{!-- Sheet Tab Navigation --}} {{!-- Sheet Body --}} @@ -39,8 +39,9 @@ {{!-- Description Tab --}}
- {{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}} +
+ {{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}} +
-
diff --git a/templates/item/item-motivation-sheet.html b/templates/item/item-motivation-sheet.html index 5ebc25a..135fb67 100644 --- a/templates/item/item-motivation-sheet.html +++ b/templates/item/item-motivation-sheet.html @@ -1,5 +1,5 @@
- + {{!-- Sheet Tab Navigation --}}
{{!-- Sheet Body --}} @@ -77,7 +77,7 @@ {{!-- Handler Notes Tab --}} {{#if (playerHasGamemasterPrivileges)}}
-
+
{{localize 'DG.ItemWindow.Tome.UnnaturalIncrease'}}: @@ -86,7 +86,7 @@ / - + {{localize 'DG.ItemWindow.Ritual.ActivationSanityDamage'}}: @@ -94,16 +94,18 @@ / - +
{{localize 'DG.ItemWindow.Tome.HandlerNotes'}}: - +
- {{editor enrichedHandlerNotes target="system.handlerNotes" engine="prosemirror" button=true owner=owner editable=editable}} -
-
- {{/if}} +
+ {{editor enrichedHandlerNotes target="system.handlerNotes" engine="prosemirror" button=true owner=owner editable=editable}} +
+
+ + {{/if}}
diff --git a/templates/item/item-tome-sheet.html b/templates/item/item-tome-sheet.html index 2806709..cbfac6f 100644 --- a/templates/item/item-tome-sheet.html +++ b/templates/item/item-tome-sheet.html @@ -1,9 +1,9 @@
- - -
+ + +
{{#if item.system.revealed}} {{#if (playerHasGamemasterPrivileges)}}{{/if}} @@ -44,9 +44,9 @@ {{/if}} {{/if}}
- +
- +
{{!-- Sheet Tab Navigation --}} @@ -54,7 +54,7 @@ {{localize 'DG.ItemWindow.Tome.Description'}} {{#if (playerHasGamemasterPrivileges)}} {{localize 'DG.ItemWindow.Tome.HandlerOnlyTabHeader'}} - {{/if}} + {{/if}} {{!-- Sheet Body --}} @@ -68,7 +68,7 @@ {{!-- Handler Notes Tab --}} {{#if (playerHasGamemasterPrivileges)}}
-
+
{{localize 'DG.ItemWindow.Tome.UnnaturalIncrease'}}: @@ -80,16 +80,18 @@ / - +
{{localize 'DG.ItemWindow.Tome.HandlerNotes'}}: - +
- {{editor enrichedHandlerNotes target="system.handlerNotes" engine="prosemirror" button=true owner=owner editable=editable}} -
-
- {{/if}} +
+ {{editor enrichedHandlerNotes target="system.handlerNotes" engine="prosemirror" button=true owner=owner editable=editable}} +
+
+ + {{/if}}
From e87d3b1978dd2485b1f1baa3136537cad3536f70 Mon Sep 17 00:00:00 2001 From: Mykhailo Budiakov Date: Tue, 9 Sep 2025 09:33:01 +0300 Subject: [PATCH 3/5] add changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0507ed7..7b2c6e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### **Bug Fixes:** - [#259](https://github.com/deltagreen-foundryvtt/delta-green-foundry-vtt-system/issues/259) - Fixed "Keep Sanity Private" setting in agent sheets. +- [#263](https://github.com/deltagreen-foundryvtt/delta-green-foundry-vtt-system/issues/263) - Fixed Edit bond description ## Version 1.6.0 - 2025-09-04 From b9f2bd33ef64119d71023178a1ebe0d595b80ade Mon Sep 17 00:00:00 2001 From: jalensailin Date: Tue, 9 Sep 2025 02:43:23 -0400 Subject: [PATCH 4/5] Add last two `editor` wrappers --- templates/item/item-ritual-sheet.html | 4 +++- templates/item/item-tome-sheet.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/item/item-ritual-sheet.html b/templates/item/item-ritual-sheet.html index 46f2394..4084abe 100644 --- a/templates/item/item-ritual-sheet.html +++ b/templates/item/item-ritual-sheet.html @@ -71,7 +71,9 @@ {{!-- Description Tab --}}
- {{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}} +
+ {{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}} +
{{!-- Handler Notes Tab --}} diff --git a/templates/item/item-tome-sheet.html b/templates/item/item-tome-sheet.html index cbfac6f..b85bccd 100644 --- a/templates/item/item-tome-sheet.html +++ b/templates/item/item-tome-sheet.html @@ -62,7 +62,9 @@ {{!-- Description Tab --}}
- {{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}} +
+ {{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}} +
{{!-- Handler Notes Tab --}} From 945f40a57e8474c60c5c7b5799f3f5ddb04f22a3 Mon Sep 17 00:00:00 2001 From: jalensailin Date: Tue, 9 Sep 2025 02:45:17 -0400 Subject: [PATCH 5/5] fix changelog wording --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b2c6e2..3b0094a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ ### **Bug Fixes:** - [#259](https://github.com/deltagreen-foundryvtt/delta-green-foundry-vtt-system/issues/259) - Fixed "Keep Sanity Private" setting in agent sheets. -- [#263](https://github.com/deltagreen-foundryvtt/delta-green-foundry-vtt-system/issues/263) - Fixed Edit bond description +- [#263](https://github.com/deltagreen-foundryvtt/delta-green-foundry-vtt-system/issues/263) - Fixed inability to edit item descriptions. ## Version 1.6.0 - 2025-09-04