22978 Posts in 11759 Topics by 2827 members
|Go to End|
1 January 2010 at 9:54am
I'm not sure if this is a bug or if there is a way around this. Anyway, here is the issue that I am having...
I have a table filled with data, but if I take the data out of the cell just temporarily and then that table cell completely disappears. This is okay for someone knowing html, because they can just go into the html view and readd the <td></td> there, but someone that is not familiar with it would be lost and would have to create a completely new table from the menu.
Has anyone else experienced this problem? Any help would be greatly appreciated.
1 January 2010 at 3:46pm
If there's nothing in the table cell, put in there. That's what used to be the way, anyway. Maybe there's a more modern way.
1 January 2010 at 3:54pm
Thanks for the reply Toby, that would work for me, but no for my clients that don't know HTML. If there is nothing in the table shouldn't the CMS automatically put a for the less HTML-savvy?
1 January 2010 at 6:02pm
What in SilverStripe is producing your table?
1 January 2010 at 6:09pm
If my team creates a regular table from the Tiny MCE menu, enters data, then removes data from one cell of that table it automatically removes the <td></td> tags...
2 January 2010 at 2:15pm
Others have the same problem:
There is a TinyMCE config change you could make that would probably solve this:
The SS Wiki shows how to change the TinyMCE config using mysite/_config.php
This SSBits article covers it, too:
I imagine you'll need to copy the valid_elements setting from cms/_config.php into your own _config.php, edit the settings (perhaps putting #td rather than -td -- I'm no expert on TinyMCE and have NOT tried any of this) and set that option yourself
There's a bug http://open.silverstripe.org/ticket/4390 in SS that means the cms/ module's config overrides your own: you can work around this as described here:
Hope this helps.
5 January 2010 at 4:01am
Thanks Toby, I will start looking more into the TinyMCE part.
|Go to Top|