There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-7ef83dc6-bd7a-4a47-92d3-5841bc06bc23 XWIKI-23748 Open

Changing text color of a paragraph containing a link does not work correctly

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-789c2e70-3665-4c39-af0c-25aa2c84aea9 Marius Dumitru Florea on 24/Nov/25 10:42
 

The editor produces this HTML:

<p>
  <span style="color:#c0392b"><span style="background-color:#f1c40f">one </span></span>
  <!--startwikilink:true|-|doc|-|Macros.WebHome-->
  <span class="wikilink">
    <a href="..."><span style="color:#c0392b"><span style="background-color:#f1c40f">two</span></span></a>
  </span>
  <!--stopwikilink-->
  <span style="color:#c0392b"><span style="background-color:#f1c40f"> three</span></span>
</p>

which is converted to this XWiki 2.1 syntax:

(% style="color: rgb(192, 57, 43); background-color: rgb(241, 196, 15)" %)one (%%)[[(% style="color: rgb(192, 57, 43); background-color: rgb(241, 196, 15)" %)two>>doc:Macros.WebHome]] three

The style is lost after the link.

The bug only happens for Text color, and not Background Color

Lucian Chevereseanu for me, it happens with both, and I don't see how it could behave differently.