From 84ce2f78d7293317abb747eb4b749a3ab5aa54ab Mon Sep 17 00:00:00 2001 From: fabres Date: Sun, 19 Jul 2026 22:52:39 +0200 Subject: [PATCH] =?UTF-8?q?appv2:=20correction=20des=20=C3=A9diteurs=20Pro?= =?UTF-8?q?seMirror=20et=20scrollbar=20sur=20les=20fiches=20d'acteur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Migration des fiches acteur V2 : racine
(DocumentSheetV2 encapsule déjà dans , élimine les formulaires imbriqués) - Ajout de submitOnChange: true sur la feuille de base acteur (nécessaire pour que les événements change des éditeurs déclenchent la mise à jour) - Ajout de toggled=true + wrapper
+ \ No newline at end of file diff --git a/templates/actor-entite-sheet.hbs b/templates/actor-entite-sheet.hbs index 64953118..48398f91 100644 --- a/templates/actor-entite-sheet.hbs +++ b/templates/actor-entite-sheet.hbs @@ -1,4 +1,4 @@ -
+
{{!-- Sheet Header --}}
@@ -48,12 +48,15 @@ -
- {{editor description target="system.description" button=true owner=options.isOwner editable=options.editable engine="prosemirror"}} -
+

Description

+
+
+ {{formInput systemFields.description enriched=description value=system.description name="system.description" toggled=true}} +
+
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.hbs"}}
-
\ No newline at end of file + \ No newline at end of file diff --git a/templates/actor-sheet.hbs b/templates/actor-sheet.hbs index 247b89ac..db4bd4be 100644 --- a/templates/actor-sheet.hbs +++ b/templates/actor-sheet.hbs @@ -1,4 +1,4 @@ -
+
{{>'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete-script.hbs'}} {{!-- Sheet Header --}} @@ -22,14 +22,14 @@ {{!-- Sheet Tab Navigation --}} {{!-- Sheet Body --}} @@ -152,9 +152,9 @@ {{> "systems/foundryvtt-reve-de-dragon/templates/actor/liens-animaux.hbs"}} {{> "systems/foundryvtt-reve-de-dragon/templates/actor/liens-vehicules.hbs"}} - + {{!-- Biography Tab --}} -
+
  • @@ -225,18 +225,21 @@

    Biographie

    -
    - {{editor biographie target="system.biographie" button=true owner=options.isOwner editable=options.editable engine="prosemirror"}} -
    +
    +
    + {{formInput systemFields.biographie enriched=biographie value=system.biographie name="system.biographie" toggled=true}} +
    +

    Notes

    -
    - {{editor notes target="system.notes" button=true owner=options.isOwner editable=options.editable engine="prosemirror"}} -
    +
    +
    + {{formInput systemFields.notes enriched=notes value=system.notes name="system.notes" toggled=true}} +
    +
    {{> "systems/foundryvtt-reve-de-dragon/templates/actor/xp-journal.hbs"}} {{> "systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.hbs"}}
-
- + diff --git a/templates/actor-vehicule-sheet.hbs b/templates/actor-vehicule-sheet.hbs index e5441298..1e9b1e37 100644 --- a/templates/actor-vehicule-sheet.hbs +++ b/templates/actor-vehicule-sheet.hbs @@ -1,4 +1,4 @@ -
+
{{!-- Sheet Header --}}
@@ -36,8 +36,8 @@ {{!-- Sheet Tab Navigation --}} {{!-- Sheet Body --}} @@ -83,9 +83,12 @@ -
- {{editor description target="system.description" button=true owner=options.isOwner editable=options.editable engine="prosemirror"}} -
+

Description

+
+
+ {{formInput systemFields.description enriched=description value=system.description name="system.description" toggled=true}} +
+
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.hbs"}} @@ -96,4 +99,4 @@
-
\ No newline at end of file + \ No newline at end of file diff --git a/templates/actor/commerce-actor-sheet.hbs b/templates/actor/commerce-actor-sheet.hbs index 8452057e..28339fdf 100644 --- a/templates/actor/commerce-actor-sheet.hbs +++ b/templates/actor/commerce-actor-sheet.hbs @@ -1,4 +1,4 @@ -
+
{{!-- Sheet Header --}}
@@ -36,7 +36,12 @@ {{!-- Sheet Body --}}
- {{editor description target="system.description" button=true owner=options.isOwner editable=options.isOwner engine="prosemirror"}} +
+
+ + {{formInput systemFields.description enriched=description value=system.description name="system.description" toggled=true}} +
+

{{> "systems/foundryvtt-reve-de-dragon/templates/actor/commerce-inventaire.hbs"}} @@ -50,4 +55,4 @@ {{> "systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.hbs"}}
- \ No newline at end of file +
\ No newline at end of file diff --git a/templates/actor/editor-notes-mj.hbs b/templates/actor/editor-notes-mj.hbs index 32c17a6e..1d89b9d6 100644 --- a/templates/actor/editor-notes-mj.hbs +++ b/templates/actor/editor-notes-mj.hbs @@ -1,6 +1,8 @@ {{#if options.isGM}}

Notes du MJ :

-
- {{editor notesmj target="system.notesmj" button=true owner=options.isOwner editable=options.editable engine="prosemirror"}} -
+
+
+ {{formInput systemFields.notesmj enriched=notesmj value=system.notesmj name="system.notesmj" toggled=true}} +
+
{{/if}} diff --git a/templates/actor/export-scriptarium/actor-encart-sheet.hbs b/templates/actor/export-scriptarium/actor-encart-sheet.hbs index f5556a63..3f8cac2d 100644 --- a/templates/actor/export-scriptarium/actor-encart-sheet.hbs +++ b/templates/actor/export-scriptarium/actor-encart-sheet.hbs @@ -1,4 +1,4 @@ -
+
@@ -128,4 +128,4 @@
{{/if}}
- \ No newline at end of file +
\ No newline at end of file