Insert a table into google doc at cursor position
问题 I am working on a Google Docs add on that turns text into a table. It allows the user to either 1) select some text or 2) place their cursor inside the text they want, and when a custom button in the sidebar is clicked, the script will: Insert a single row, single cell table at the cursor position or the startIndex of the selected text, Place inside that cell either the text a user has selected or the complete text of the element in which the cursor is placed, Delete the original selected