[dokuwiki] Re: How to increase the size off acronyms display?

  • From: Christopher Arndt <chris.arndt@xxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 04 Nov 2005 14:21:55 +0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Theissen schrieb:
> Hello,
> 
> I want to enlarge the size of the acronyms display in my DokuWiki.
> My purpose is to display large help text but the text field is too small
> to show it. It would be a really important feature for our
> documentation...do you know any solution?

The tooltip for acronym is generated by the browser according to the title
attribut of the 'acronym' tag. There is no way to influence the amount of text
that can be displayed in title tooltips. That's why they are not suited for for
large texts. Also because you can't format the text (e.g. line breaks) in a
compatible way.

An alternative would be to use JavaScript generated tooltips instead (and set
the title attribut as a fallback if JavaScript is not available). The file
domTT.js in 'lib/scripts' implements such tooltips. You would need to alter the
method 'acronym' in inc/parser/xhtml.php' to generate the appropriate
javascript handlers for the acronym tags. Or, in the spirit of un-obstrusive
JavaScript, you would include a JavaScript file in your pages, that attaches an
appropriate handler to display tooltips to every arconym tag on page load (and
remove the title attribute).

Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Seeing only garbage? Get my OpenPGP key here:
http://chrisarndt.de/contact.html

iD8DBQFDa26DXWGCGKl166oRAuppAJ40TK/e1w1q0rJ4umfczw6eXg4+bACggP95
ICmEW9UwhcDBpKFse38/2+4=
=eKzq
-----END PGP SIGNATURE-----
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: