Skip to content
This page is for Tiptap 2.x.See the latest version of this page.

exitCode command

The exitCode command will create a default block after the current selection if the selection is a code element and move the cursor to the new block.

Use the exitCode command

editor.commands.exitCode()