/*
PRODOCOM CUSTOM Split Cell FUNCTION
Created DEC 2011 Ian Blott.
TASK: Update version from 1.3 to 3.6 and port pluggins
*/
(function(){
var a = {
exec:function(editor){
editor.execCommand("cellHorizontalSplit");
}
},
b='cellhorizontalsplit';
CKEDITOR.plugins.add(b,{
init:function(editor){
editor.addCommand(b,a);
editor.ui.addButton("cellhorizontalsplit",{
label: 'Split Cell',
icon: this.path + 'images/icon.png',
command:b
});
}
});
})();
Re: Adding toolbar buttons to format table cells/rows/colums
Anyone got any info?
Re: Adding toolbar buttons to format table cells/rows/colums
editor.execCommand("cellHorizontalSplit");this is calling the function cellHorizontalSplit in file _source/plugins/tabletools/plugin.js
You can now run through the other functions and create your own individual plugins for which ever feature you'd like
Re: Adding toolbar buttons to format table cells/rows/colums
Re: Adding toolbar buttons to format table cells/rows/colums
/* PRODOCOM CUSTOM Split Cell FUNCTION Created DEC 2011 Ian Blott. TASK: Update version from 1.3 to 3.6 and port pluggins */ (function(){ var a = { exec:function(editor){ editor.execCommand("cellHorizontalSplit"); } }, b='cellhorizontalsplit'; CKEDITOR.plugins.add(b,{ init:function(editor){ editor.addCommand(b,a); editor.ui.addButton("cellhorizontalsplit",{ label: 'Split Cell', icon: this.path + 'images/icon.png', command:b }); } }); })();