1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Mobile: Capitalise first word of sentence in beta editor

This commit is contained in:
Laurent Cozic 2021-10-31 09:32:08 +00:00
parent 8de9032321
commit 4128be9d6c

View File

@ -145,6 +145,7 @@ export function initCodeMirror(parentElement: any, initialText: string, theme: a
drawSelection(),
highlightSpecialChars(),
EditorView.lineWrapping,
EditorView.contentAttributes.of({ autocapitalize: 'sentence' }),
defaultHighlightStyle.fallback,
EditorView.updateListener.of((viewUpdate: ViewUpdate) => {
if (viewUpdate.docChanged) {