Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Links with heterogeneous inner styles are not entirely clickable #107

Closed
slauriere opened this issue Jan 9, 2020 · 0 comments
Closed

Links with heterogeneous inner styles are not entirely clickable #107

slauriere opened this issue Jan 9, 2020 · 0 comments

Comments

@slauriere
Copy link

@slauriere slauriere commented Jan 9, 2020

Steps to reproduce

Environment: Diagram Pro 1.12, XWiki Standard 10.11.9, Firefox 71

  • Create a diagram
  • Insert a rectangle with some inner sentence
  • Add an hyperlink to the text toward an internal wiki page
  • Style only a part of the sentence (for example turn one word to bold face in the middle of the sentence)
  • Save and view the diagram
  • Click the bold word

Result

The link does not open while one would expect it does. The other parts of the sentence remain clickable.

Sample diagram

Here's below the XML of a sample diagram producing the error.

<mxGraphModel dx="686" dy="497" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
  <root>
    <mxCell id="v0DjpAL3hPdHT3A4eaxT-0"/>
    <mxCell id="v0DjpAL3hPdHT3A4eaxT-1" parent="v0DjpAL3hPdHT3A4eaxT-0"/>
    <mxCell id="IT_YH68JLBqi0NF2uO0P-2" value="&lt;a href=&quot;data:xwiki/reference,doc:xwiki:Sandbox.WebHome&quot;&gt;Lorem ipsum dolor &lt;b&gt;sic&lt;/b&gt; amor&lt;/a&gt;" style="rounded=0;whiteSpace=wrap;html=1;" parent="v0DjpAL3hPdHT3A4eaxT-1" vertex="1">
      <mxGeometry x="190" y="160" width="120" height="60" as="geometry"/>
    </mxCell>
  </root>
</mxGraphModel>
@mflorea mflorea self-assigned this Jan 30, 2020
@mflorea mflorea added this to the 1.13 milestone Jan 30, 2020
@mflorea mflorea closed this Jan 30, 2020
@oanalavinia oanalavinia removed this from the 1.13 milestone Jan 31, 2020
@oanalavinia oanalavinia added this to the 1.12.2 milestone Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants