Skip to content

Function: toggleHeading() ​

ts
function toggleHeading(level): Command;

Heading of level if the block is not one already, otherwise back to a paragraph.

Parameters ​

ParameterType
levelnumber

Returns ​

Command