Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Table inside of a macro

Craig Hylwa
Contributor
January 10, 2012

Is there a way to copy a table that is inside of another macro (example: column macro) without copying the surrounding macro?

3 answers

1 accepted

0 votes
Answer accepted
Matt
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 11, 2012

You should be able to highlight the table with your mouse - i.e. click and drag until you have selected the whole table and then copy it to your clipboard and paste it where ever you like :)

Craig Hylwa
Contributor
January 11, 2012

Working On a Mac with Safari Browser

The table is nested in column macro

The column macro is nested in section macro

I highlight only the table then press <command><c> to copy

When I paste what I have copied it pastes the table and the two surrounding macros, column and section even though I have only copied the table.

I just want the table not the two surrounding macros.

Craig Hylwa
Contributor
January 11, 2012

Tried it on Firefox and it works as you have described it previously. Seems to be Safari related.

0 votes
Graham Hannington
Contributor
June 26, 2012

In the meantime, until this bug is fixed, you might like to use the built-in Web Inspector that comes with Safari (or similar "Firebug-like" extension) to delve under the hood of the rich text editor, select (just) the corresponding HTML table element (with class attribute value "confluenceTable"), copy it to the clipboard, and paste it wherever you want.

I've tried this in Safari 5.1.7 on Windows with Confluence 4.2:

  1. Show the Develop menu in the Safari menu bar (if you haven't already): Preferences > Advanced > Show Develop menu in menu bar.
  2. Select Develop > Show Web Inspector.
  3. Use the "magnifying glass" button (tooltip: "Select an element in the page to inspect it.") to select the table, or one of its descendant elements. (This is to display the roughly appropriate section of HTML in the HTML source view displayed by the Web Inspector, as a precursor to precisely selecting the table element in the following step. In practice, I have not been able to select the table using the magnifying glass; I select the first th, or first td, element.)
  4. In the HTML source view displayed by the Web Inspector, right-click the table start tag, and then click "Copy as HTML".
  5. An unfortunate kludge (to get the content into the appropriate internal clipboard format, so that it does not paste as HTML source code): open the Snippet Editor (Develop > Show Snippet Editor), and paste the HTML in the top pane. Then select the rendered content (the table) shown in the bottom pane, and copy it to the clipboard.
  6. In the rich text editor, paste the table where you want it.

Firebug in Firefox doesn't involve that kludge in step 5, so I thought I'd try "Firebug Lite" in Safari, but the "Inspect" button didn't work for me. I'm moving on.

I've previously added some related comments (about "under the covers" editing in the rich text editor) to the Confluence 4 editor - Customer Feedback page that you might find interesting.

0 votes
Matt
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 11, 2012

Looks like you found a bug, Craig. Specifically in Safari. I've raised this with our Development Team. I could not reproduce this in Chrome of Firefox.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events