Wikia/app — pull request #491 by ArturD (2013-03-12 11:58:17+00:00)
Title: Bugid 32623

User wrote in today with the following complaint:

"As it stands, if you try and tab through the parameter textfields, you cannot, it pushes you to the preview button. This is causing us tremendous grief. Now, this is simply remedied by adding tabindex to the textfields, however I have noted that these are randomly generated. The following script handles this very effectively:

$(function() {
var index = 1;
$('#templateParameters dd textarea').each(function() {
$(this).attr('tabindex', index)
index++;
});
});

However, I cannot get the script to execute when my template is loaded because either i do not have access to those files or it cannot be."
--
The solution was to prevent TinyMCE from handling Tab and handle it by custom code. It's bit dirty but rewriting whole plugin to use dialog extension (which would be more elegant way) seems to be overkill given that new visual editor is coming.