Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

캐럿이 위치한 문단에 글머리 기호, 글머리 번호를 토글합니다.

문단을 셀렉션한 경우 셀렉션한 모든 문단에 글머리 기호, 글머리 번호를 토글합니다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:

Code Block
languagejs
themeEmacs
editor.execCommand('toggleList', 'bullet');
editor.execCommand('toggleList', 'number');

...