Make the paragraph in which the caret is positioned a multilevel list.

When there is a selection, the selected paragraphs become a multilevel list.


Parameters:

NameTypeDescription
actionNameString'setMultiList' multilevel list API
styleString
  • 'none': Remove list
  • 'multi_1': Indented multilevel bullets in the format '1 1.1 1.1.1'
  • 'multi_2': Indented multilevel bullets in the format '1. 1.1 1.1.1'
  • 'multi_3': Indented multilevel bullets in the format '1 1-1 1-1-1'


Example:

editor.execCommand('setMultiList', 'none');
editor.execCommand('setMultiList', 'multi_1');
editor.execCommand('setMultiList', 'multi_3');