Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkorelstar <korelstar@users.noreply.github.com>2021-05-04 22:49:20 +0300
committerkorelstar <korelstar@users.noreply.github.com>2021-05-07 09:51:40 +0300
commitc4b7dfe6ec283a45245cb32badc3fd94575dd2bf (patch)
treeef34626d4e88210c3a81f2fe0876c1b3ca2d31ff /src
parentc2da524ded7fc5851adfce1207505e28372dabbb (diff)
always use contenteditable and native spellcheck
Diffstat (limited to 'src')
-rw-r--r--src/components/EditorEasyMDE.vue9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/EditorEasyMDE.vue b/src/components/EditorEasyMDE.vue
index 6eec1cd1..4e36c078 100644
--- a/src/components/EditorEasyMDE.vue
+++ b/src/components/EditorEasyMDE.vue
@@ -21,6 +21,8 @@ export default {
return {
config: {
spellChecker: false,
+ nativeSpellcheck: true,
+ inputStyle: 'contenteditable',
autoDownloadFontAwesome: false,
toolbar: false,
status: false,
@@ -133,6 +135,13 @@ export default {
border-color: var(--color-main-text);
}
+/* overwrite Nextcloud style for contenteditable */
+.CodeMirror .CodeMirror-code {
+ font-size: inherit;
+ margin: 0;
+ padding: 0;
+}
+
/* text selection */
.CodeMirror .CodeMirror-selectedtext {
background-color: var(--color-primary-element) !important;