Project

General

Profile

Actions

Feature #19270

closed

Tables in RTE have no counting rows/columns css class feature as contenttype table has

Added by Thorsten Krohn about 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2008-08-30
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

Rows and columns in table made with the contenttype table have counting css classes assigned like class="tr-0", "tr-1", ... "tr-last" and class="td-0", "td-1", ... "td-last". So it is easy to assign styles for each row or column to a table.

Tables made with the RTE do not have this feature, though the alternating feature is going in this direction ( http://typo3.org/documentation/document-library/extension-manuals/rtehtmlarea_manual/1.7.4/view/4/4/ ).

A patch which implements the counting classes the same way the alternating feature in the RTE is available.

(issue imported from #M9262)


Files

Actions #1

Updated by Stanislas Rolland about 16 years ago

The proposed patch did not work correctly when rows and/or columns were added or removed form the table. Re-styling did not work. Please try the attached patch.

Actions #2

Updated by Thorsten Krohn about 16 years ago

You are right. I have tested your patch and it works fine with one small exception: The last-class of columns were not removed when "Removing Block Style". Find a patch attached correcting this issue (Changed just one character form i to j in "if (lastColumnClassName && j == n-1)" in "countColumns : function (table, classConfiguration, remove)".

I am attaching a modified version of the documentation change which states that the class names should not be a substring of any other class name.

Actions #3

Updated by Stanislas Rolland about 16 years ago

Yes, I noted that too.

Thanks again.

Committed to SVN TYPO3core trunk (revision 4064), including updated Manual.

Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF