diff options
author | szaimen <szaimen@e.mail.de> | 2021-07-17 01:05:15 +0300 |
---|---|---|
committer | Azul <azul@riseup.net> | 2022-01-11 15:24:42 +0300 |
commit | fc9398c072f3d45e3ee68157548e686847541825 (patch) | |
tree | 52396e472327ff2030fffa818ba4d8f4527de7bc /src/EditorFactory.js | |
parent | 83d970a89ccd2dfe26fe3e213035edcdfd504178 (diff) |
[stable22] allow to insert text after trailing codeblock
Signed-off-by: szaimen <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'src/EditorFactory.js')
-rw-r--r-- | src/EditorFactory.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/EditorFactory.js b/src/EditorFactory.js index e69e4b7e3..91a0ec284 100644 --- a/src/EditorFactory.js +++ b/src/EditorFactory.js @@ -30,6 +30,7 @@ import { CodeBlockHighlight, HorizontalRule, History, + TrailingNode, Placeholder, } from 'tiptap-extensions' import { Strong, Italic, Strike, Link } from './marks' @@ -103,6 +104,10 @@ const createEditor = ({ content, onInit, onUpdate, extensions, enableRichEditing extensions: [ ...richEditingExtensions, new History(), + new TrailingNode({ + node: 'paragraph', + notAfter: ['paragraph'], + }), ].concat(extensions), useBuiltInExtensions: enableRichEditing, }) |