Fix éditeurs HTML : {{editor}} → {{formInput}} (API Foundry v13)
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>
This commit is contained in:
@@ -59,21 +59,21 @@
|
|||||||
<div class="anomaly-section">
|
<div class="anomaly-section">
|
||||||
<div class="anomaly-section-title">{{localize "CELESTOPOL.Item.technique"}}</div>
|
<div class="anomaly-section-title">{{localize "CELESTOPOL.Item.technique"}}</div>
|
||||||
<div class="anomaly-editor-wrap">
|
<div class="anomaly-editor-wrap">
|
||||||
{{editor system.technique target="system.technique" button=false editable=isEditable}}
|
{{formInput systemFields.technique enriched=enrichedTechnique value=system.technique name="system.technique" toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="anomaly-section">
|
<div class="anomaly-section">
|
||||||
<div class="anomaly-section-title">{{localize "CELESTOPOL.Item.narratif"}}</div>
|
<div class="anomaly-section-title">{{localize "CELESTOPOL.Item.narratif"}}</div>
|
||||||
<div class="anomaly-editor-wrap">
|
<div class="anomaly-editor-wrap">
|
||||||
{{editor system.narratif target="system.narratif" button=false editable=isEditable}}
|
{{formInput systemFields.narratif enriched=enrichedNarratif value=system.narratif name="system.narratif" toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="anomaly-section">
|
<div class="anomaly-section">
|
||||||
<div class="anomaly-section-title">{{localize "CELESTOPOL.Item.exemples"}}</div>
|
<div class="anomaly-section-title">{{localize "CELESTOPOL.Item.exemples"}}</div>
|
||||||
<div class="anomaly-editor-wrap">
|
<div class="anomaly-editor-wrap">
|
||||||
{{editor system.exemples target="system.exemples" button=false editable=isEditable}}
|
{{formInput systemFields.exemples enriched=enrichedExemples value=system.exemples name="system.exemples" toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -26,18 +26,18 @@
|
|||||||
|
|
||||||
<section class="tab active" data-group="item-tabs" data-tab="description">
|
<section class="tab active" data-group="item-tabs" data-tab="description">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{{editor system.description target="system.description" button=true editable=isEditable}}
|
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="tab" data-group="item-tabs" data-tab="technique">
|
<section class="tab" data-group="item-tabs" data-tab="technique">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>{{localize "CELESTOPOL.Item.technique"}}</label>
|
<label>{{localize "CELESTOPOL.Item.technique"}}</label>
|
||||||
{{editor system.technique target="system.technique" button=true editable=isEditable}}
|
{{formInput systemFields.technique enriched=enrichedTechnique value=system.technique name="system.technique" toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>{{localize "CELESTOPOL.Item.narratif"}}</label>
|
<label>{{localize "CELESTOPOL.Item.narratif"}}</label>
|
||||||
{{editor system.narratif target="system.narratif" button=true editable=isEditable}}
|
{{formInput systemFields.narratif enriched=enrichedNarratif value=system.narratif name="system.narratif" toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -26,18 +26,18 @@
|
|||||||
|
|
||||||
<section class="tab active" data-group="item-tabs" data-tab="description">
|
<section class="tab active" data-group="item-tabs" data-tab="description">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{{editor system.description target="system.description" button=true editable=isEditable}}
|
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="tab" data-group="item-tabs" data-tab="technique">
|
<section class="tab" data-group="item-tabs" data-tab="technique">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>{{localize "CELESTOPOL.Item.technique"}}</label>
|
<label>{{localize "CELESTOPOL.Item.technique"}}</label>
|
||||||
{{editor system.technique target="system.technique" button=true editable=isEditable}}
|
{{formInput systemFields.technique enriched=enrichedTechnique value=system.technique name="system.technique" toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>{{localize "CELESTOPOL.Item.narratif"}}</label>
|
<label>{{localize "CELESTOPOL.Item.narratif"}}</label>
|
||||||
{{editor system.narratif target="system.narratif" button=true editable=isEditable}}
|
{{formInput systemFields.narratif enriched=enrichedNarratif value=system.narratif name="system.narratif" toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -23,20 +23,12 @@
|
|||||||
{{!-- Description / Biographie --}}
|
{{!-- Description / Biographie --}}
|
||||||
<div class="biography-section">
|
<div class="biography-section">
|
||||||
<div class="section-header">{{localize "CELESTOPOL.Actor.description"}}</div>
|
<div class="section-header">{{localize "CELESTOPOL.Actor.description"}}</div>
|
||||||
{{#if isEditMode}}
|
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||||
{{editor system.description target="system.description" button=true editable=isEditable}}
|
|
||||||
{{else}}
|
|
||||||
<div class="enriched-html">{{{enrichedDescription}}}</div>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{!-- Notes --}}
|
{{!-- Notes --}}
|
||||||
<div class="notes-section">
|
<div class="notes-section">
|
||||||
<div class="section-header">{{localize "CELESTOPOL.Actor.notes"}}</div>
|
<div class="section-header">{{localize "CELESTOPOL.Actor.notes"}}</div>
|
||||||
{{#if isEditMode}}
|
{{formInput systemFields.notes enriched=enrichedNotes value=system.notes name="system.notes" toggled=true}}
|
||||||
{{editor system.notes target="system.notes" button=true editable=isEditable}}
|
|
||||||
{{else}}
|
|
||||||
<div class="enriched-html">{{{enrichedNotes}}}</div>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -49,6 +49,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group description-group">
|
<div class="form-group description-group">
|
||||||
{{editor system.description target="system.description" button=true editable=isEditable}}
|
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -25,10 +25,6 @@
|
|||||||
|
|
||||||
{{!-- Description --}}
|
{{!-- Description --}}
|
||||||
<div class="description-section">
|
<div class="description-section">
|
||||||
{{#if isEditMode}}
|
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||||
{{editor system.description target="system.description" button=true editable=isEditable}}
|
|
||||||
{{else}}
|
|
||||||
<div class="enriched-html">{{{enrichedDescription}}}</div>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user