diff --git a/styles/simple.css b/styles/simple.css index 790396eb..92f7a11e 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -572,22 +572,32 @@ input:is(.blessure-premiers_soins, .blessure-soins_complets) { flex-grow: 3; } - +.editor.prosemirror { + height: fit-content; + min-height: 20rem; +} +.large-editor { + border: 2; + height: fit-content; + min-height: 12rem; + padding: 0 3px; +} .editor { border: 2; - height: 10rem; + height: fit-content; + min-height: 8rem; padding: 0 3px; } .medium-editor { border: 2; - height: 240px; + min-height: 8rem; padding: 0 3px; } .small-editor { border: 2; - height: 150px; + min-height: 4rem; padding: 0 3px; } diff --git a/templates/actor-creature-sheet.html b/templates/actor-creature-sheet.html index f20c90b3..f6404bd5 100644 --- a/templates/actor-creature-sheet.html +++ b/templates/actor-creature-sheet.html @@ -63,17 +63,10 @@ {{> "systems/foundryvtt-reve-de-dragon/templates/actor/inventaire.html"}} - {{!-- Biography Tab --}} + {{!-- Description Tab --}}
- -
-

Race

- -
- -
-

Description

- {{editor description target="system.description" button=true owner=owner editable=true}} +
+ {{editor description target="system.description" button=true owner=owner editable=editable engine="prosemirror"}}
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.html"}} diff --git a/templates/actor-entite-sheet.html b/templates/actor-entite-sheet.html index 6c0b6f09..61cee9d6 100644 --- a/templates/actor-entite-sheet.html +++ b/templates/actor-entite-sheet.html @@ -43,8 +43,8 @@
-
- {{editor description target="system.description" button=true owner=owner editable=true}} +
+ {{editor description target="system.description" button=true owner=owner editable=editable engine="prosemirror"}}
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.html"}} diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 87e5b906..9d23679f 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -180,12 +180,12 @@

Biographie :

-
- {{editor biographie target="system.biographie" button=true owner=owner editable=editable}} +
+ {{editor biographie target="system.biographie" button=true owner=owner editable=true engine="prosemirror"}}

Notes :

-
- {{editor notes target="system.notes" button=true owner=owner editable=editable}} +
+ {{editor notes target="system.notes" button=true owner=owner editable=true engine="prosemirror"}}
{{> "systems/foundryvtt-reve-de-dragon/templates/actor/xp-journal.html"}} {{> "systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.html"}} diff --git a/templates/actor-vehicule-sheet.html b/templates/actor-vehicule-sheet.html index e21924c5..0f09a705 100644 --- a/templates/actor-vehicule-sheet.html +++ b/templates/actor-vehicule-sheet.html @@ -83,8 +83,8 @@
-
- {{editor description target="system.description" button=true owner=owner editable=editable}} +
+ {{editor description target="system.description" button=true owner=owner editable=true engine="prosemirror"}}
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.html"}}
diff --git a/templates/actor/editor-notes-mj.html b/templates/actor/editor-notes-mj.html index 9b3a7caa..c34e91b8 100644 --- a/templates/actor/editor-notes-mj.html +++ b/templates/actor/editor-notes-mj.html @@ -1,6 +1,6 @@ {{#if options.isGM}}

Notes du MJ :

-
- {{editor notesmj target="system.notesmj" button=true owner=owner editable=editable}} +
+ {{editor notesmj target="system.notesmj" button=true owner=owner editable=true engine="prosemirror"}}
{{/if}} diff --git a/templates/actor/xp-journal.html b/templates/actor/xp-journal.html index ce0eb427..1536425a 100644 --- a/templates/actor/xp-journal.html +++ b/templates/actor/xp-journal.html @@ -1,5 +1,5 @@

Journal d'Experience

-
+
    {{#each system.experiencelog as |xp key|}}
  • diff --git a/templates/item-extraitpoetique-sheet.html b/templates/item-extraitpoetique-sheet.html index 70ac8a09..a02127c0 100644 --- a/templates/item-extraitpoetique-sheet.html +++ b/templates/item-extraitpoetique-sheet.html @@ -11,14 +11,14 @@
    -
    - {{editor extrait target="system.extrait" button=true owner=owner editable=editable}} +
    + {{editor extrait target="system.extrait" button=true owner=owner editable=true engine="prosemirror"}}
    -
    - {{editor texte target="system.texte" button=true owner=owner editable=editable}} +
    + {{editor texte target="system.texte" button=true owner=owner editable=true engine="prosemirror"}}
    diff --git a/templates/item-recettealchimique-sheet.html b/templates/item-recettealchimique-sheet.html index e8a5f7b3..62a32d4a 100644 --- a/templates/item-recettealchimique-sheet.html +++ b/templates/item-recettealchimique-sheet.html @@ -9,25 +9,25 @@
    - {{editor manipulation_update target="system.manipulation" button=true owner=owner editable=editable}} + {{editor manipulation_update target="system.manipulation" button=true owner=owner editable=true engine="prosemirror"}}
    - {{editor utilisation target="system.utilisation" button=true owner=owner editable=editable}} + {{editor utilisation target="system.utilisation" button=true owner=owner editable=true engine="prosemirror"}}
    - {{editor enchantement target="system.enchantement" button=true owner=owner editable=editable}} + {{editor enchantement target="system.enchantement" button=true owner=owner editable=true engine="prosemirror"}}
    - {{editor sureffet target="system.sureffet" button=true owner=owner editable=editable}} + {{editor sureffet target="system.sureffet" button=true owner=owner editable=true engine="prosemirror"}}
    diff --git a/templates/item-recettecuisine-sheet.html b/templates/item-recettecuisine-sheet.html index e803a5e0..9a4b1b46 100644 --- a/templates/item-recettecuisine-sheet.html +++ b/templates/item-recettecuisine-sheet.html @@ -24,8 +24,8 @@
-
- {{editor ingredients target="system.ingredients" button=true owner=owner editable=editable}} +
+ {{editor ingredients target="system.ingredients" button=true owner=owner editable=true engine="prosemirror"}}
diff --git a/templates/item-rencontre-sheet.html b/templates/item-rencontre-sheet.html index 49e631e4..e00336f5 100644 --- a/templates/item-rencontre-sheet.html +++ b/templates/item-rencontre-sheet.html @@ -111,8 +111,8 @@
-
- {{editor system.succes.poesie target="system.succes.poesie" button=true owner=owner editable=editable}} +
+ {{editor system.succes.poesie target="system.succes.poesie" button=true owner=owner editable=true engine="prosemirror"}}
@@ -156,8 +156,8 @@
-
- {{editor system.echec.poesie target="system.echec.poesie" button=true owner=owner editable=editable}} +
+ {{editor system.echec.poesie target="system.echec.poesie" button=true owner=owner editable=true engine="prosemirror"}}
diff --git a/templates/partial-item-description.html b/templates/partial-item-description.html index 939e003b..74bed44f 100644 --- a/templates/partial-item-description.html +++ b/templates/partial-item-description.html @@ -1,14 +1,14 @@
-
- {{editor description target="system.description" button=true owner=owner editable=editable}} +
+ {{editor description target="system.description" button=true owner=owner editable=true engine="prosemirror"}}
{{#if isGM}}
-
- {{editor descriptionmj target="system.descriptionmj" button=true owner=owner editable=editable}} +
+ {{editor descriptionmj target="system.descriptionmj" button=true owner=owner editable=true engine="prosemirror"}}
{{/if}} \ No newline at end of file