Page tree
Skip to end of metadata
Go to start of metadata

Toggle bulleted or numbered list setting in the paragraph in which the caret is positioned.

When there is a selection, bulleted or numbered list setting in the selected paragraphs is toggled.


Parameters:

NameTypeDescription
actionNameString'toggleList' list toggling API
typeString
  • 'bullet': bullets
  • 'number': bullet number


Example:

editor.execCommand('toggleList', 'bullet');
editor.execCommand('toggleList', 'number');
  • No labels