Add a RichEditor to make HTMLFields livable

This commit is contained in:
Oliver-Akins 2025-02-09 23:09:18 -07:00
parent f6ff3247e3
commit ced2b5151b
7 changed files with 137 additions and 0 deletions

View file

@ -0,0 +1,16 @@
<div>
{{#if editable}}
<prose-mirror
name="{{ path }}"
value="{{ raw }}"
{{ifThen compact "compact" ""}}
{{#if collaborative}}
data-document-uuid="{{ uuid }}"
{{/if}}
>
{{{ enriched }}}
</prose-mirror>
{{else}}
{{{ enriched }}}
{{/if}}
</div>

View file

@ -0,0 +1,19 @@
.ripcrypt--RichEditor {
width: 500px;
height: 600px;
> .window-content {
padding: 4px;
background: var(--base-background);
height: 100%;
}
prose-mirror {
height: 100%;
.editor-content {
color: var(--input-text);
background: var(--input-background);
}
}
}

View file

@ -4,3 +4,4 @@
@import url("./DicePool/style.css");
@import url("./HeroSummaryCardV1/style.css");
@import url("./HeroSkillsCardV1/style.css");
@import url("./RichEditor/style.css");