Skip to content

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

License

Notifications You must be signed in to change notification settings

likemusic/tabletoolstoolbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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".

TODO

  • Finish (add test by contribution guide) - ckeditor/ckeditor4#279
  • Push rename Vertical/Horizontal split translated to Russia ("Разрезать вертикально" вместо "Разделить по вертикали").
  • Change split/merge icons to something more comprehensible.

Licence

MIT License.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published