/** * $Id$ * * @author Moxiecode * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. * * The contents of this file will be wrapped in a class later on. */ /**#@+ * @member TinyMCE_Engine * @method */ tinyMCE.add(TinyMCE_Engine, { /** * Sets the enabled/disabled state of build in events on the specific node. * This function is needed since some events gets executed in WYSIWYG mode. * * @param {HTMLNode} node HTML node to enable/disable events on. * @param {boolean} state true/false state if the events should be disabled or enabled. * @private */ _setEventsEnabled : function(node, state) { var evs, x, y, elms, i, event; var events = ['onfocus','onblur','onclick','ondblclick', 'onmousedown','onmouseup','onmouseover','onmousemove', 'onmouseout','onkeypress','onkeydown','onkeydown','onkeyup']; evs = tinyMCE.settings.event_elements.split(','); for (y=0; y