Ticket #1459 (closed enhancement: wontfix)
Allow basic markup syntax in tooltips
| Reported by: | lrbabe | Owned by: | stefan |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.1.4 |
| Component: | interface | Version: | 1.1.3 |
| Keywords: | tooltip | Cc: | |
| Blocking: | Blocked by: |
Description
We should allow a few markup conversion for titles used in tooltips. for exemple, this title :
title="heading :: some info | another info"
(note that the title remains understandable and valid without conversion), could be rendered as :
<div id="tooltipHelper">
<div id="tooltipTitle">
<hX>heading</hX> some info<br /> another info
</div> <div id="tooltipURL"> </div>
</div>
the only thing to do actually is to replace line 65 of iTooltip by : jQuery('#tooltipTitle').html(title.replace(/(.*?)::/, "<h4>$1</h4>").replace(/ \| /g, "<br />"));
An option could be added to ignore conversion...
PS : Excuse my poor english, I'm just a young french.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Interface is no longer supported; consider switching to jQuery UI.