Comment 1 for bug 1319243

Revision history for this message
Aaron Wells (u-aaronw) wrote :

Some ideas:

1. Change the tooltoggle lang files into PHP scripts that can use standard Mahara language strings. The problem is that this would require patching TinyMCE's language code, because it's hardcoded to look for files following a certain naming pattern ending in "*.js". Although, maybe it could be as simple as changing that code so that it looks for *.js or *.php?

2. Eliminate the lang string. Change the icon so that it is more obvious what it does even without a tooltip, and then eliminate the tooltip. This may cause accessibility issues, though, because then a screenreader can't tell what this button does? Although I can't recall whether screenreaders can actually use TinyMCE in the first place.

3. Pass in this lang string via some other method. Does TinyMCE's localization API let us pass in lang strings via some other method, which could be accessed by some Javascript printed directly to the page by the smarty() method in web.php?