diff --git a/ts/editor/NoteEditor.svelte b/ts/editor/NoteEditor.svelte index 466c3051e..e7af40922 100644 --- a/ts/editor/NoteEditor.svelte +++ b/ts/editor/NoteEditor.svelte @@ -328,11 +328,11 @@ the AddCards dialog) should be implemented in the user of this component. { - richTextsHidden[index] = !richTextsHidden[index]; - plainTextsHidden[index] = true; if (!richTextsHidden[index]) { + plainTextsHidden[index] = true; richTextInputs[index].api.refocus(); } + richTextsHidden[index] = !richTextsHidden[index]; }} > @@ -362,8 +362,7 @@ the AddCards dialog) should be implemented in the user of this component. { plainTextsHidden[index] = !plainTextsHidden[index]; diff --git a/ts/editor/PlainTextBadge.svelte b/ts/editor/PlainTextBadge.svelte index 46267b537..6cce48455 100644 --- a/ts/editor/PlainTextBadge.svelte +++ b/ts/editor/PlainTextBadge.svelte @@ -4,10 +4,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html --> -
(hover = true)} - on:mouseleave={() => (hover = false)} -> - - - - - -
+{#if !collapsed} +
+ + HTML + +
+{/if}