My client is enjoying using CKEditor, but for data entry they want to use the tab key to jump through to the other form fields as they normally would.
I'm running version 3.6.1. I've set in my config.js tabSpaces = 0 and enableTabKeyTools = true, yet still, I can't seem to get the tab-through to work.
Tell me grand wizards, by what manner of magic do I make this happen? Is there a missing link here?
I'm running version 3.6.1. I've set in my config.js tabSpaces = 0 and enableTabKeyTools = true, yet still, I can't seem to get the tab-through to work.
Tell me grand wizards, by what manner of magic do I make this happen? Is there a missing link here?
Re: Still can't tab: tabSpaces = 0 and enableTabKeyTools = t
In the source for tab/plugin.js, there is are methods called focusNext and focusPrevious getting added to the editor. It uses this loop to find out what the next element with a tabIndex is, and then focusing on it.
Well, here's my relevant html:
The issue is that (on webkit at least) fieldset nodes get a default tabIndex of 0. So the code tries to focus on a fieldset, but the fieldset node isn't a focusable node.
In source, I just added:
And I'm adding that to my compiled version manually in a moment.
So there's my solution.
Anyone have thoughts if there's a better way? I don't have always have control over the html, so this seems "mostly scalable" in that regard.