diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-10-04 02:16:56 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-10-04 02:16:56 +0200 |
commit | 57634ff0b6c235cf097b80d677a3a967cd80a6e6 (patch) | |
tree | c0abaad191a0651dc3c5fcd4d96b4c8c730f9568 /language-web/src/main/js/editor/EditorStore.ts | |
parent | build: refactor task dependencies (diff) | |
download | refinery-57634ff0b6c235cf097b80d677a3a967cd80a6e6.tar.gz refinery-57634ff0b6c235cf097b80d677a3a967cd80a6e6.tar.zst refinery-57634ff0b6c235cf097b80d677a3a967cd80a6e6.zip |
fix(web): improve accessibility
contenteditable should provide a better experience for screen reader and
IME users
Diffstat (limited to 'language-web/src/main/js/editor/EditorStore.ts')
-rw-r--r-- | language-web/src/main/js/editor/EditorStore.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/language-web/src/main/js/editor/EditorStore.ts b/language-web/src/main/js/editor/EditorStore.ts index 8b9432dd..705020b9 100644 --- a/language-web/src/main/js/editor/EditorStore.ts +++ b/language-web/src/main/js/editor/EditorStore.ts | |||
@@ -24,6 +24,8 @@ const codeMirrorGlobalOptions: EditorConfiguration = { | |||
24 | mode: `xtext/${xtextLang}`, | 24 | mode: `xtext/${xtextLang}`, |
25 | indentUnit: 2, | 25 | indentUnit: 2, |
26 | styleActiveLine: true, | 26 | styleActiveLine: true, |
27 | screenReaderLabel: 'Model source code', | ||
28 | inputStyle: 'contenteditable', | ||
27 | }; | 29 | }; |
28 | 30 | ||
29 | export class EditorStore { | 31 | export class EditorStore { |