Type Editor / @type-editor/commands / exit-code
exit-code
Variables
| Variable | Description |
|---|---|
Creates a default block after a code block and moves the cursor there. This command allows users to "exit" from a code block by creating a new default block (typically a paragraph) immediately after the code block and positioning the cursor at the start of it. This is particularly useful when the cursor is at the end of a code block and the user wants to continue editing outside of it. The command only works when:
Param The current editor state Param Optional dispatch function to execute the transaction Example typescript |