feat: complete migration from {{editor}} to <prose-mirror> elements

This commit is contained in:
Alexander Minges 2025-07-13 13:59:53 +02:00
parent 372a2f718c
commit 3efbac9e84
Signed by: Athemis
GPG key ID: 31FBDEF92DDB162B
3 changed files with 36 additions and 6 deletions

View file

@ -32,8 +32,18 @@ SPDX-License-Identifier: MIT
<div class="form-group stacked">
<label>{{ localize "EFFECT.Description" }}</label>
{{editor descriptionHTML target="description" button=false editable=editable engine="prosemirror"
collaborate=false}}
{{#if editable}}
<prose-mirror
name="description"
button="false"
editable="{{editable}}"
toggled="false"
value="{{data.description}}">
{{{descriptionHTML}}}
</prose-mirror>
{{else}}
{{{descriptionHTML}}}
{{/if}}
</div>
<div class="form-group">

View file

@ -5,6 +5,16 @@ SPDX-License-Identifier: MIT
--}}
<div class="ds4-biography">
{{editor data.system.profile.biography target="system.profile.biography" button=true owner=owner
editable=editable engine="prosemirror"}}
{{#if editable}}
<prose-mirror
name="system.profile.biography"
button="true"
editable="{{editable}}"
toggled="false"
value="{{data.system.profile.biography}}">
{{{data.system.profile.biography}}}
</prose-mirror>
{{else}}
{{{data.system.profile.biography}}}
{{/if}}
</div>

View file

@ -5,6 +5,16 @@ SPDX-License-Identifier: MIT
--}}
<div class="ds4-description">
{{editor data.system.baseInfo.description target="system.baseInfo.description" button=true owner=owner
editable=editable engine="prosemirror"}}
{{#if editable}}
<prose-mirror
name="system.baseInfo.description"
button="true"
editable="{{editable}}"
toggled="false"
value="{{data.system.baseInfo.description}}">
{{{data.system.baseInfo.description}}}
</prose-mirror>
{{else}}
{{{data.system.baseInfo.description}}}
{{/if}}
</div>