How to copy a table column including text

Questions about how to use the online - editors and suggestions how to improve them

How to copy a table column including text

Postby Nicky » Wed May 09, 2012 9:27 am

Is it possible to add a new column in a table, then copy all text of the already existing column in there?
How can I do this?
Thanks
Nicky
 
Posts: 67
Joined: Sun Feb 08, 2009 9:50 am

Re: How to copy a table column including text

Postby cmb » Wed May 09, 2012 9:45 am

Hi Nicky,

AFAIK there's no easy way to accomplish this. You have to add the new column and then copy each cell.

Christoph
Christoph M. Becker---Plugins for CMSimple_XH
cmb
 
Posts: 5474
Joined: Tue Jun 21, 2011 11:04 am
Location: Germany

Re: How to copy a table column including text

Postby Tata » Sun Jul 29, 2012 7:48 am

darpon wrote:Is it like an array?

It is to understand that a table is practically organized of rows/columns containing cells. The cells are practically separated containers. The editor is able to insert a row or a column so that it counts number of columns in neighboring row or rows in neighboring columns and then inserts either a row:
Code: Select all
<tr><td</td>...<td</td></tr>
or a column so that id adds one cell into each row.
To insert the row/column containing some content already would mean to work in HTML mode and to have skills to work with HTML code. Inserting a row would not be difficult.
1. Copy the code from existing table (must be of the same structure as the target table)
2. Insert the whole row-code into target table.
To insert a column is also possible, but not in one step. New column means new cell in each row.
Much safer and faster is to do it in WYSIWYG mode:
1. Insert a row/column using the functions of your editor
2. Copy desired content and insert it cell-by-cell.
Image
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Tata
 
Posts: 1438
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia


Return to Editors

Who is online

Users browsing this forum: No registered users and 1 guest