Bug Tracker

Ticket #1460 (closed enhancement: duplicate)

Opened 1 year ago

Last modified 9 months ago

Allow basic markup syntax in tooltips

Reported by: lrbabe Assigned to: stefan
Type: enhancement Priority: minor
Milestone: 1.1.4 Component: interface
Version: 1.1.3 Keywords: tooltip
Cc: Needs: Review

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.

Attachments

Change History

Changed 9 months ago by scott.gonzal

  • status changed from new to closed
  • resolution set to duplicate

duplicate of #1459

Note: See TracTickets for help on using tickets.