Move PlainTextBadge between editing inputs

where it belongs :)
This commit is contained in:
Matthias Metelka 2022-08-03 20:02:44 +02:00
parent 26c5fbc367
commit 1280372129

View file

@ -359,22 +359,19 @@ the AddCards dialog) should be implemented in the user of this component.
> >
<ImageHandle maxWidth={250} maxHeight={125} /> <ImageHandle maxWidth={250} maxHeight={125} />
<MathjaxHandle /> <MathjaxHandle />
<svelte:fragment slot="plain-text-badge">
<PlainTextBadge
bind:off={plainTextsHidden[index]}
on:toggle={() => {
plainTextsHidden[index] =
!plainTextsHidden[index];
if (!plainTextsHidden[index]) {
plainTextInputs[index].api.refocus();
}
}}
/>
</svelte:fragment>
</RichTextInput> </RichTextInput>
<PlainTextBadge
bind:off={plainTextsHidden[index]}
on:toggle={() => {
plainTextsHidden[index] = !plainTextsHidden[index];
if (!plainTextsHidden[index]) {
plainTextInputs[index].api.refocus();
}
}}
/>
<PlainTextInput <PlainTextInput
hidden={plainTextsHidden[index]} hidden={plainTextsHidden[index]}
on:focusout={() => { on:focusout={() => {