How to insert link in table cell that already contains preformatted text?

Stefan E April 11, 2018

I would like to add a link into the table cell shown in the figure. However, the link button is disabled. This seems to be due to the fact that the text is "Preformatted" (I copied it from VisualStudio).

Is there a way to keep the font of the text (it is the name of a method in my source code) and use it as hyperlink?

Inserting links after switching to "Paragraph" works.

 

It took me a while to find out why hyperlinks are not working in that table cell. *grmpf*

Suggestion: Enable hyperlinks for preformatted text or add a tooltip to the upper toolbar saying why it is disabled.

 

 

 

image.png

Ugly work around: Create the hyperlink elsewhere and copy paste it to the cell. That will keep the font and enable the hyperlink:

image.png

<td colspan="1">
        <pre>
          <ac:link ac:anchor="foo">
            <ri:page ri:content-title="Final energy demand"/>
            <ac:plain-text-link-body><![CDATA[finalEnergyConsumption]]></ac:plain-text-link-body>
          </ac:link>
        </pre>
      </td> 

 

If I switch to another browser tab and back, the hyperlink button seems to be enabled but it does not work (see figure below). =>Bug in display of enabled state of the button.

image.png

 

2 answers

1 vote
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 12, 2018

Hi Stefan,

The "Preformatted" option means there will be no formatting, which is why those options are disabled.

The workaround that Alana let you know about is actually monospace text, but it may help you in the case that you wanted your text to be monospace but linked to a URL.

I was able to confirm that if you insert monospace text instead, you will be able to select the text and link it as expected. 

To insert monospace text it's as Alana mentioned, typing two curly brackets around the word you want to insert in monospace font.

Regards,
Shannon

Alana Fernando
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 12, 2018

Good explanation @Shannon S 

1 vote
Alana Fernando
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 11, 2018

hi @Stefan E ,

Another workaround is to enter your link via markup.

{{[https://community.atlassian.com]}}

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events