Last modified: 2007-10-21 15:02:43 UTC
We use extended toolbar with javascript buttons in ru.wikisource and fr.wikisource. But Where is bug in Opera browser with tags in javascript. The bug appeared after r14419.
Created attachment 2301 [details] revert
Created attachment 2302 [details] Screenshot
This probably comes from using innerHTML, which is very very unreliable. Instead, try using the JS function for adding toolbar buttons.
But so I can not add button with javascript function (wikifikator, add table) on click.
I have no idea what that means, but I assume it means "JavaScript functions can't be run in response to UI events" which I'm pretty sure is not true. ;)
> try using the JS function for adding toolbar buttons Which functions? I know only about "mwCustomEditButtons" array, but i can not use it for: <a href="javascript:Wikificator();"><img src="http://...button.png" \></a> I know 2 ways to solve this problem: 1. something like in http://fr.wikikipedia.org/wiki/MediaWiki:Monobook.js but in this case i can add button with javascript function on click only at first position in toolbar (edit any article en fr.wikipedia). It is because CDATA javascript in <div id='toolbar'>. 2. or something like in http://fr.wikisource.org/wiki/MediaWiki:Monobook.js it is good, but not for Opera browser. And so i create this patch. Pardonu mian anglan :(