TinyMCE:Configuration/tab focus

From Moxiecode Documentation Wiki

Jump to: navigation, search

Option: tab_focus

(Requires: 3.0)

This option enables you to specify an element ID to focus, when the user pressed the tab key inside the editor. You can also use the special ":prev" and ":next" values. It will then places the focus on either the previous or next input element placed before/after the TinyMCE instance in the DOM.

Example of usage of the tab_focus option

// Move focus to specific element
tinyMCE.init({
	...
	theme : "advanced",
	tab_focus : "somebutton"
});

// Move focus to next element in DOM
tinyMCE.init({
	...
	theme : "advanced",
	tab_focus : ":prev,:next"
});
Personal tools