editor-tab-debug.js revision aa2ac226ad6e45232f8416eecc99d2165ce74d03
/**
* @module editor
* @submodule editor-tab
*/
/**
* @class Plugin.EditorTab
* @constructor
* @extends Base
*/
var EditorTab = function() {
}, HOST = 'host';
/**
* Listener for host's nodeChange event and captures the tabkey interaction.
* @private
* @method _onNodeChange
* @param {Event} e The Event facade passed from the host.
*/
_onNodeChange: function(e) {
var action = 'indent';
if (e.changedType === 'tab') {
e.changedEvent.halt();
e.preventDefault();
if (e.changedEvent.shiftKey) {
action = 'outdent';
}
}
}
},
initializer: function() {
}
}, {
/**
* editorTab
* @property NAME
* @static
*/
NAME: 'editorTab',
/**
* tab
* @property NS
* @static
*/
NS: 'tab',
ATTRS: {
host: {
value: false
}
}
});
Y.namespace('Plugin');