joinUp command

The joinUp command joins the selected block, or if there is a text selection, the closest ancestor block of the selection that can be joined, with the sibling above it. See also

Use the joinUp command

editor.commands.joinUp()