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

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

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


Parameters:

NameTypeDescription
actionNameString'setNumberedList' numbered list API
formatString
  • 'decimal': 1. 2. 3. ....
  • 'decimalEnclosedCircle': ① ② ③ ...
  • 'upperLetter': A. B. C. ...
  • 'lowerLetter': a. b. c. ...
  • 'upperRoman': I. II. III. ...
  • 'lowerRoman' i. ii. iii. ...
  • 'ganada': 가. 나. 다. ...
  • 'chosung': ㄱ. ㄴ. ㄷ. ...


Example:

editor.execCommand('setNumberedList', 'decimal');
editor.execCommand('setNumberedList', 'decimalEnclosedCircle');
editor.execCommand('setNumberedList', 'ganada');
  • No labels