0.0.1 • Published 4 years ago

tabletoolstoolbar v0.0.1

Weekly downloads
73
License
ISC
Repository
-
Last release
4 years ago

tabletoolstoolbar

A plugin for CKEditor 4, that add toolbar's groups with buttons relevant to tabletools plugin's table's context menu items actions.

tabletoolstoolbar

Toolbar's groups and buttons

  • table - contains buttons for work with tables
    • tableinsert tableinsert - add new table
    • tabledelete tabledelete - delete current table
    • tableproperties tableproperties - show dialog with table properties
  • tablerow - contains buttons for work with rows
    • tablerowinsertbefore tablerowinsertbefore - add row above current cell
    • tablerowinsertafter tablerowinsertafter - add row under current cell
    • tablerowdelete tablerowdelete - delete row with current cell
  • tablecolumn - contains buttons for work with columns
    • tablecolumninsertbefore tablecolumninsertbefore - add column before current cell
    • tablecolumninsertafter tablecolumninsertafter - add column after current cell
    • tablecolumndelete tablecolumndelete - delete column with current cell
  • tablecell - contains buttons for work with cells (except merge/split)
    • tablecellinsertbefore tablecellinsertbefore - add cell before current cell
    • tablecellinsertafter tablecellinsertafter - add cell after current cell
    • tablecelldelete tablecelldelete - delete current cell
    • tablecellproperties tablecellproperties - whow dialog with current cell properties
  • tablecellmergesplit - contains buttons for cell merge/split
    • tablecellsmerge tablecellsmerge - merge selected cells
    • tablecellmergeright tablecellmergeright - merge current cell with right cell
    • tablecellmergedown tablecellmergedown - merge current cell with down cell
    • tablecellsplithorizontal tablecellsplithorizontal - split horizontal current cell
    • tablecellsplitvertical tablecellsplitvertical - split vertical current cell

How to use

Add required toolbar's group to your toolbar's config:

toolbarGroups : [
		{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
        ...
		{ name: 'others', groups: [ 'others' ] },
		'/',
		{ name: 'tables', groups: [ 'table','tablerow','tablecolumn', 'tablecell','tablecellmergesplit' ] }
	]
    });

For more info please read official toolbar configuration guide.

Third-party components

Icons (some with partial changes)from "Farm-Fresh Web Icons".

Licence

MIT License.