From 3efbac9e844048d22779fa6425bee777196d9d68 Mon Sep 17 00:00:00 2001 From: Alexander Minges Date: Sun, 13 Jul 2025 13:59:53 +0200 Subject: [PATCH] feat: complete migration from {{editor}} to elements --- .../sheets/active-effect/active-effect-config.hbs | 14 ++++++++++++-- templates/sheets/actor/components/biography.hbs | 14 ++++++++++++-- templates/sheets/actor/components/description.hbs | 14 ++++++++++++-- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/templates/sheets/active-effect/active-effect-config.hbs b/templates/sheets/active-effect/active-effect-config.hbs index 5a52247a..cccde11a 100644 --- a/templates/sheets/active-effect/active-effect-config.hbs +++ b/templates/sheets/active-effect/active-effect-config.hbs @@ -32,8 +32,18 @@ SPDX-License-Identifier: MIT
- {{editor descriptionHTML target="description" button=false editable=editable engine="prosemirror" - collaborate=false}} + {{#if editable}} + + {{{descriptionHTML}}} + + {{else}} + {{{descriptionHTML}}} + {{/if}}
diff --git a/templates/sheets/actor/components/biography.hbs b/templates/sheets/actor/components/biography.hbs index b8e1befb..e98bf0a8 100644 --- a/templates/sheets/actor/components/biography.hbs +++ b/templates/sheets/actor/components/biography.hbs @@ -5,6 +5,16 @@ SPDX-License-Identifier: MIT --}}
- {{editor data.system.profile.biography target="system.profile.biography" button=true owner=owner - editable=editable engine="prosemirror"}} + {{#if editable}} + + {{{data.system.profile.biography}}} + + {{else}} + {{{data.system.profile.biography}}} + {{/if}}
diff --git a/templates/sheets/actor/components/description.hbs b/templates/sheets/actor/components/description.hbs index dac3ba05..4a66ca3d 100644 --- a/templates/sheets/actor/components/description.hbs +++ b/templates/sheets/actor/components/description.hbs @@ -5,6 +5,16 @@ SPDX-License-Identifier: MIT --}}
- {{editor data.system.baseInfo.description target="system.baseInfo.description" button=true owner=owner - editable=editable engine="prosemirror"}} + {{#if editable}} + + {{{data.system.baseInfo.description}}} + + {{else}} + {{{data.system.baseInfo.description}}} + {{/if}}