Unable to exit code block at the end of a page edited with the content editor
Summary
Writing in the content editor (Wiki editor) you can create a code block. However, if that code block is the last content node on a page, there is no way to exit that code block and return to typing normal text content.
Steps to reproduce
- Edit a wiki page using the content editor
- Create a code block at the end of the page, there can be no empty lines after
- Type some code
- Try to exit the code block
What is the current bug behavior?
The supported way to exit the code block is by using Cmd/Ctrl + return
but that also submits the form on the page and exits the editing session. This is a conflicting shortcut, made even worse by a bug that submits the form without any of the changes made in the content editor: #334191 (closed)
What is the expected correct behavior?
There should be a way to exit typing the code block without resorting to keyboard shortcuts. Proposal from the comments is Shift + Return
.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)