Using TableResize Plugin — CKEditor Sample

# CKEditor Sample — Using the TableResize Plugin

This sample shows how to configure CKEditor instances to use the TableResize (`tableresize`) plugin that allows the user to edit table columns by using the mouse.

The TableResize plugin makes it possible to modify table column width. Hover your mouse over the column border to see the cursor change to indicate that the column can be resized. Click and drag your mouse to set the desired width.

By default the plugin is turned off. To add a CKEditor instance using the TableResize plugin, insert the following JavaScript call into your code:

    CKEDITOR.replace( 'textarea_id',
    	{
    		extraPlugins : 'tableresize'
    	});

Note that `textarea_id` in the code above is the `id` attribute of the `<textarea>` element to be replaced with CKEditor.

CKEditor using the `tableresize` plugin: <table style="width: 500px;"> <caption> A sample table</caption> <tbody> <tr> <td> Column 1</td> <td> Column 2</td> </tr> <tr> <td> You can resize a table column.</td> <td> Hover your mouse over its border.</td> </tr> <tr> <td> Watch the cursor change.</td> <td> Now click and drag to resize.</td> </tr> </tbody> </table>