Gets a command to apply a paragraph level to the selected text
readonly setParagraphLevel: SetParagraphLevelCommand
An object that provides methods that execute the command and check its state.
Call the execute(level) method to invoke the command. The method checks the command state (obtained via the getState method) to determine whether the action can be performed.
The setParagraphLevel method allows you to control whether the selected paragraphs are displayed in a table of contents depending on the level parameter's value:
You can use the getState method to obtain the selected paragraphs' current paragraph level.