캐럿이 위치한 곳에 표를 삽입합니다.
문단 사이에 캐럿이 위치한 경우 문단을 나누고 그 사이에 표를 삽입합니다.
...
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:
Name | Type | Description |
---|---|---|
actionName | String액션 이름 | 'insertTable' table inserting API |
rowcol | Object | { row: {Number} col: {Number} } 테이블의 행/열row/column of table |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
editor.execCommand('insertTable', { row: 2, col: 2 }); // insert 2x2 테이블 삽입table |