Describe the bug
When a code block is the last thing in a document, then you can't insert text after it (at least I can't figure out how to :)).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the same behavior as inserting images, where a newline is inserted after the image or the ability to double click after the last line to create a new.
Client details:
You can press "Shift-Enter" to get out of the code block, but I agree that it should be possible to move outside of the block by hitting enter two times probably. cc @nextcloud/designers
Yes, agree this is an issue, tiptap seems to have the same problem. So I would say this is something to fix upstream? I couldn鈥檛 find an issue for it at https://github.com/scrumpy/tiptap/issues
Hitting enter two times would then make you unable to write longer code in it though? Maybe there should always be an empty line after a code block?
Should be something we can fix with the new TrailingNode extension.
https://github.com/scrumpy/tiptap/issues/143#issuecomment-514319700
In Dropbox Paper, you need hit enter twice on an empty line to escape the code block. I like this, because it still lets you insert blank lines into the code block while also giving you a quick way out.
Most helpful comment
You can press "Shift-Enter" to get out of the code block, but I agree that it should be possible to move outside of the block by hitting enter two times probably. cc @nextcloud/designers