Skip to content

Allow easily inserting content after a code block

Himanshu Kapoor requested to merge 339485-code-block into master

What does this MR do and why?

Allow easily inserting content after a code block when a code block is the last element in a document

Right now when the code editor is the last block of a document, it is not so trivial to insert content after the code block. You could use "Shift" + "Enter" or "Cmd" + "Enter", but its a bit tricky because "Cmd" + "Enter" also submits the form.

Screenshots or screen recordings

How to set up and validate locally

  1. Create a new wiki page
  2. Create a new code block and type something in it.
  3. Use the arrow keys to navigate before or after the code block. You will see a horizontal cursor appear before/after the code block.
  4. Type something or press enter to add some text before/after the code block.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #339485 (closed)

Merge request reports

Loading