From d2af32aba7cf5170a3fadcd1035d23cfd1212f9f Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Sun, 29 Mar 2026 16:40:08 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20=C3=A9diteurs=20HTML=20:=20{{editor}}=20?= =?UTF-8?q?=E2=86=92=20{{formInput}}=20(API=20Foundry=20v13)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tous les champs HTMLField utilisaient le vieux helper {{editor}} (v10/v11) incompatible avec AppV2. Remplacement par {{formInput systemFields.xxx enriched=enrichedXxx value=... name=... toggled=true}} dans : - templates/anomaly.hbs (technique, narratif, exemples) - templates/aspect.hbs (description, technique, narratif) - templates/attribute.hbs (description, technique, narratif) - templates/equipment.hbs (description) - templates/character-biography.hbs (description, notes) - templates/npc-blessures.hbs (description) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- templates/anomaly.hbs | 6 +++--- templates/aspect.hbs | 6 +++--- templates/attribute.hbs | 6 +++--- templates/character-biography.hbs | 12 ++---------- templates/equipment.hbs | 2 +- templates/npc-blessures.hbs | 6 +----- 6 files changed, 13 insertions(+), 25 deletions(-) diff --git a/templates/anomaly.hbs b/templates/anomaly.hbs index 89d6915..969d06e 100644 --- a/templates/anomaly.hbs +++ b/templates/anomaly.hbs @@ -59,21 +59,21 @@
{{localize "CELESTOPOL.Item.technique"}}
- {{editor system.technique target="system.technique" button=false editable=isEditable}} + {{formInput systemFields.technique enriched=enrichedTechnique value=system.technique name="system.technique" toggled=true}}
{{localize "CELESTOPOL.Item.narratif"}}
- {{editor system.narratif target="system.narratif" button=false editable=isEditable}} + {{formInput systemFields.narratif enriched=enrichedNarratif value=system.narratif name="system.narratif" toggled=true}}
{{localize "CELESTOPOL.Item.exemples"}}
- {{editor system.exemples target="system.exemples" button=false editable=isEditable}} + {{formInput systemFields.exemples enriched=enrichedExemples value=system.exemples name="system.exemples" toggled=true}}
diff --git a/templates/aspect.hbs b/templates/aspect.hbs index 4ac4717..d228e0e 100644 --- a/templates/aspect.hbs +++ b/templates/aspect.hbs @@ -26,18 +26,18 @@
- {{editor system.description target="system.description" button=true editable=isEditable}} + {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
- {{editor system.technique target="system.technique" button=true editable=isEditable}} + {{formInput systemFields.technique enriched=enrichedTechnique value=system.technique name="system.technique" toggled=true}}
- {{editor system.narratif target="system.narratif" button=true editable=isEditable}} + {{formInput systemFields.narratif enriched=enrichedNarratif value=system.narratif name="system.narratif" toggled=true}}
diff --git a/templates/attribute.hbs b/templates/attribute.hbs index 6c0548c..318461c 100644 --- a/templates/attribute.hbs +++ b/templates/attribute.hbs @@ -26,18 +26,18 @@
- {{editor system.description target="system.description" button=true editable=isEditable}} + {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
- {{editor system.technique target="system.technique" button=true editable=isEditable}} + {{formInput systemFields.technique enriched=enrichedTechnique value=system.technique name="system.technique" toggled=true}}
- {{editor system.narratif target="system.narratif" button=true editable=isEditable}} + {{formInput systemFields.narratif enriched=enrichedNarratif value=system.narratif name="system.narratif" toggled=true}}
diff --git a/templates/character-biography.hbs b/templates/character-biography.hbs index ae2ee39..ea17b35 100644 --- a/templates/character-biography.hbs +++ b/templates/character-biography.hbs @@ -23,20 +23,12 @@ {{!-- Description / Biographie --}}
{{localize "CELESTOPOL.Actor.description"}}
- {{#if isEditMode}} - {{editor system.description target="system.description" button=true editable=isEditable}} - {{else}} -
{{{enrichedDescription}}}
- {{/if}} + {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
{{!-- Notes --}}
{{localize "CELESTOPOL.Actor.notes"}}
- {{#if isEditMode}} - {{editor system.notes target="system.notes" button=true editable=isEditable}} - {{else}} -
{{{enrichedNotes}}}
- {{/if}} + {{formInput systemFields.notes enriched=enrichedNotes value=system.notes name="system.notes" toggled=true}}
diff --git a/templates/equipment.hbs b/templates/equipment.hbs index 4c91cac..ae8db4a 100644 --- a/templates/equipment.hbs +++ b/templates/equipment.hbs @@ -49,6 +49,6 @@
- {{editor system.description target="system.description" button=true editable=isEditable}} + {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
diff --git a/templates/npc-blessures.hbs b/templates/npc-blessures.hbs index aad8ba4..bda5e32 100644 --- a/templates/npc-blessures.hbs +++ b/templates/npc-blessures.hbs @@ -25,10 +25,6 @@ {{!-- Description --}}
- {{#if isEditMode}} - {{editor system.description target="system.description" button=true editable=isEditable}} - {{else}} -
{{{enrichedDescription}}}
- {{/if}} + {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}