Skip to content

Commit 60dbf63

Browse files
authored
fix div being inserted on enter in text editors (#1343)
1 parent 8f94746 commit 60dbf63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/lib/text_edit/EditorText.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
role="textbox"
4747
tabindex="0"
4848
class="edit"
49-
contenteditable
49+
contenteditable="plaintext-only"
5050
bind:innerText={content}
5151
onkeyup={onKeyUp}
5252
onmouseup={onMoueUp}

frontend/src/lib/text_edit/md/EditorMarkdown.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
class="edit font-mono"
158158
aria-label={ta.editor.textArea}
159159
bind:innerText={markdown}
160-
contenteditable
160+
contenteditable="plaintext-only"
161161
spellcheck="false"
162162
{onblur}
163163
>

0 commit comments

Comments
 (0)