diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-10-28 14:47:22 +0300 |
---|---|---|
committer | Azul <azul@riseup.net> | 2022-01-11 15:46:39 +0300 |
commit | 44a5f301c5c147aa823d30c0c5f96c830e9a5b97 (patch) | |
tree | 4b3de10b4b89e4266812ddb4b8c0c60fb0374e98 /src/EditorFactory.js | |
parent | fc9398c072f3d45e3ee68157548e686847541825 (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.js | 8 |
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, }) |