ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: emanuele on December 03, 2012, 02:40:31 pm

Title: [bug] - the editor's textarea doesn't preserve tab-index
Post by: emanuele on December 03, 2012, 02:40:31 pm
Start a new topic
enter the subject
press tab
the focus is moved to the "post" button while it should go to the textarea.

It may be related to the upgrade to SCEditor 1.4, I fixed it somewhere for the previous version of SCEditor.
If I remember (or you are not faster) I can try to do a diff.
Title: Re: [bug] - the editor's textarea doesn't preserve tab-index
Post by: Spuds on December 03, 2012, 07:32:41 pm
If you get a change to find that would be  8)  ... there are several other things not quite right since I moved it to 1.4.  Sounds like Sam will be making a mod for SMF as well so that will help us see how he goes about integrating things.
Title: Re: [bug] - the editor's textarea doesn't preserve tab-index
Post by: emanuele on December 04, 2012, 07:06:02 am
/me takes note
Title: Re: [bug] - the editor's textarea doesn't preserve tab-index
Post by: Spuds on December 08, 2012, 10:19:22 pm
Code: [Select]
			
$sourceEditor = $('<textarea></textarea>').attr('tabindex', $original.attr('tabindex')).hide();
$wysiwygEditor = $('<iframe frameborder="0"></iframe>').attr('tabindex', $original.attr('tabindex'));

Needed to add this from the 1.3.7 version you did (with the name changes needed by 1.4) ... really it should be opened as an issue on sceditor, as it should check for tabindex and respect that when it initializes.

Anyway should be fixed now