Page tree

Versions Compared

Key

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

캐럿이 위치한 곳에 표를 삽입합니다.

문단 사이에 캐럿이 위치한 경우 문단을 나누고 그 사이에 표를 삽입합니다.

...

Insert table at the caret position.

When the caret is positioned within a paragraph, the paragraph is divided and the table is inserted.

When there is a selection, the selected block is deleted and the table is inserted.


Parameters:

NameTypeDescription
actionNameString액션 이름'insertTable' table inserting API
rowcolObject

{ row: {Number} col: {Number} }

테이블의 행/열row/column of table


Example:

Code Block
languagejs
themeEmacs
editor.execCommand('insertTable', { row: 2, col: 2 }); // insert 2x2 테이블 삽입table