spellchecker and dates

This commit is contained in:
2023-10-23 22:12:17 +03:00
parent cd1d380483
commit 075832d08f
4 changed files with 24 additions and 8 deletions
+8 -3
View File
@@ -1,5 +1,10 @@
<script>
export let value;
</script>
{value}
import {readableDate,readableDatetime} from "../../../helpers.js";
export let value;
</script>
<div title={readableDatetime(value)} data-bs-toggle="tooltip" data-bs-placement="top">
{readableDate(value)}
</div>
@@ -39,8 +39,8 @@
value = e.state.doc.toString();
}
}),
EditorView.lineWrapping
EditorView.lineWrapping,
EditorView.contentAttributes.of({spellcheck: "true"})
],
});
@@ -49,6 +49,9 @@
state,
parent: parentElement,
});
});
onDestroy(() => {