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:
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 c88de2dbb..3123eb9d9 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,
})