Inserting a table1 user found helpful
A page I'm taking care of contains a lot of number (interest rates, stock prices and stuff like that). For that I need a table?
Maybe a table block would be nice that contains a little spreadsheet..?
Any ideas about that?
I honestly can't recall off the top of my head whether adding table support to our instance of TinyMCE would be as simple as specifying another plugin, or if the interface itself would have to be modified.
I'll try that Andrew but I still consider creating my own block since that would make it easier to control the layout. I could even add some options like - auto filter, sort...
I tried to find a few cakePhp examples but couldn't find a nice one. I don't want to use cakePhp but I tried to get a few ideas out of it.
I'll try to find some spare time next week to build a table block...
A table block - a datagrid - is an interesting idea.
One way or another!
I'm just too busy right now, looks like November and December are going to be crazy, guess that block has to wait for a while..
Modify two lines:
Within "plugins" add two items (contextmenu,table) like below:
Within "theme_concrete_buttons2_add" add one item to the end (table) like below:
theme_concrete_buttons2_add : "spellchecker,table",
This is the best way to add support for tables without adding all the formatting table buttons. To format the table use the context menu that will show with a ctrl-click on the table
Finally achieved as follows. Hope this helps someone else.
Go to Sitewide Settings / Rich Text Editor (at the bottom right).
Select Custom under Toolbar Set.
Add table to the second line, so that instead of
theme : "concrete",
theme : "concrete",
Then, either within theme_concrete_buttons1 : (1st row buttons)
or theme_concrete_buttons2 : (2nd row buttons)
you will need to put either table (for just the 'insert table' option as vercasson says above) or tablecontrols (for the whole set of controls).
Or you can use any subset of tablecontrols (seehttp://www.tinymce.com/wiki.php/Plugin:table)...
For example, I set the editor up as follows:
theme_concrete_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,|,table,cell_props,delete_col,delete_row,col_after,col_before,
theme_concrete_buttons2 : "undo,redo,|,bullist,numlist,|,outdent,indent,|,hr,|,link,unlink,anchor,image,|,cleanup,code",
Can't put my finger on exactly what the upgrade wouldn't play nice with, but for example it seems to want a theme_concrete_buttons3 line (I cheated and typed theme_concrete_buttons3 : "", which seems OK)
anyway after mucking about with various settings a bit I got the icons back again and they seem to work fine.