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

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-10-28 14:47:22 +0300
committerAzul <azul@riseup.net>2022-01-11 15:46:39 +0300
commit44a5f301c5c147aa823d30c0c5f96c830e9a5b97 (patch)
tree4b3de10b4b89e4266812ddb4b8c0c60fb0374e98 /src/EditorFactory.js
parentfc9398c072f3d45e3ee68157548e686847541825 (diff)
[stable22] Only register trailing node for rich text editing
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'src/EditorFactory.js')
-rw-r--r--src/EditorFactory.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/EditorFactory.js b/src/EditorFactory.js
index 91a0ec284..3368cc00b 100644
--- a/src/EditorFactory.js
+++ b/src/EditorFactory.js
@@ -86,6 +86,10 @@ const createEditor = ({ content, onInit, onUpdate, extensions, enableRichEditing
emptyNodeText: t('text', 'Add notes, lists or links …'),
showOnlyWhenEditable: true,
}),
+ new TrailingNode({
+ node: 'paragraph',
+ notAfter: ['paragraph'],
+ }),
]
} else {
richEditingExtensions = [
@@ -104,10 +108,6 @@ const createEditor = ({ content, onInit, onUpdate, extensions, enableRichEditing
extensions: [
...richEditingExtensions,
new History(),
- new TrailingNode({
- node: 'paragraph',
- notAfter: ['paragraph'],
- }),
].concat(extensions),
useBuiltInExtensions: enableRichEditing,
})