SID-00231: Table border colors change
| Status: |
Answered |
TWiki version: |
4.2.4 |
Perl version: |
Perl 5.10.0 Build 1004 |
| Category: |
TablePlugin |
Server OS: |
Windows Server 2003 SP2 |
Last update: |
15 years ago |
In WYSIWYG mode, at one time, I was able to click within a table cell and then click the Table Cell Properties button, thus bringing up the formatting menus. I'd set a border color on the Advanced tab and then I could select to either Update just the clicked cell, or the row, or the entire table's cell borders.
Now, I do this and the border(s) change on the screen in the Edit view but when I Save, they're gone back to the default (white border??). This same thing happens for cell background color. Here, in Support Answered Questions, I followed instructions to make a single cell have a specific background color. In this case the background color is there after the first save but on the next Edit / Save sequence, the background color is gone and the default (white or light blue) is restored.
Any idea what I'm doing wrong?
--
JohnWegner - 30 Mar 2009
Discussion and Answer
Hello? Anybody out there?
--
JohnWegner - 2009-04-09
The point is that when you save the table using WYSIWYG editor it may save a TWiki table (made of vertical bars like this one)
If you see the raw code it have only this
| head1 | head2 |
| data2 | data 3|
In that case any changes in format will be lost because in the end TWiki renders that kind of tables using predefined format in its CSS styles.
If you want to keep the formatting you must make some modification to make the table to be saved in html format, with <table>, <tr> and <td> tags like this
<table>
<tr><td> head1 </td><td> head2 </td></tr>
<tr><td> data2 </td><td> data 3 </td></tr>
</table>
I found that it happens when the table is resized in Firefox (dragging the table border). I don't know what other actions would induce the WYSIWYG to decide that the table should be saved in htlm format. In Internet Explorer you have to explore the ways.
--
EnriqueCadalso - 2009-04-10
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2009-06-02
Is this bug fixed? I just tested TWiki 5.0. It still exists.
--
MarshallJiang - 2010-12-03
You need to use raw edit and add an HTML table with the style you need. Enclose the table in
<sticky> ...
</sticky> tags to prevent the WYSIWYG editor from touching it.
Ideally the WYSIWYG editor and the
TML is enhanced to have more control over table style. TWiki is open source, you could sponsor the work.
--
PeterThoeny - 2011-01-02
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.