Drag the edge of a table cell to resize its column or row, or the handle at
the table's corner to scale the whole table.
Borders move the way they do in Word: a border between two columns moves on
its own, the neighbour giving or taking the space, so the table keeps its
width. The table's outer edge and the corner handle change its width, and
stop at the editor's edge. A table never grows out of the box it sits in.
Shift-drag moves any border alone, also within that limit.
The drag previews live, straight in the DOM, and nothing enters the document
until the pointer is released, so a resize is one history entry rather
than one per pixel, and Escape puts everything back. On release every
column is committed at once (see setTableSizing), which is what
keeps the columns that were not dragged exactly where they were.
Drag the edge of a table cell to resize its column or row, or the handle at the table's corner to scale the whole table.
Borders move the way they do in Word: a border between two columns moves on its own, the neighbour giving or taking the space, so the table keeps its width. The table's outer edge and the corner handle change its width, and stop at the editor's edge. A table never grows out of the box it sits in. Shift-drag moves any border alone, also within that limit.
The drag previews live, straight in the DOM, and nothing enters the document until the pointer is released, so a resize is one history entry rather than one per pixel, and Escape puts everything back. On release every column is committed at once (see setTableSizing), which is what keeps the columns that were not dragged exactly where they were.
Returns a disposer.