Skip to content

TableResize plugin

Jiuqing Song edited this page Mar 7, 2018 · 3 revisions

Go back to Built-in plugins

TableResize plugin provides the resizing functionality of table. With this plugin user can change width of table cells by drag and drop an invisible resizing handle of table.

Create plugin instance

TableResize is an optional plugin. To use this plugin, you need to manually create instance of this plugin and add it to your editor by createEditor() API or constructor of Editor class. To manually create an instance of this plugin, you can use its constructor:

constructor(isRtl?: boolean);

Parameters

There's no required parameter for this plugin. It used to have an optional parameter 'isRtl' which is already deprecated in 6.8.0 since now the plugin can detect whether a plugin is in LTR or RTL mode.

Event

When finish resizing, this plugin will trigger a ContentChangedEvent with source equal to 'Format' (ChangeSource.Format).

For more inforation about ContentChangedEvent, please reference to ContentChangedEvent

More info

Package: roosterjs-editor-plugin

Support from: 6.8.0

Source code: TableResize.ts