/** * @requires Xquared.js * @requires Browser.js * @requires Editor.js * @requires plugin/Base.js */ xq.plugin.EventLogPlugin = xq.Class(xq.plugin.Base, /** * @name xq.plugin.EventLogPlugin * @lends xq.plugin.EventLogPlugin.prototype * @extends xq.plugin.Base * @constructor */ { isEventListener: function() {return true;}, onAfterLoad: function(xed) { this.createLogWindow(); }, onEditorStartInitialization: function(xed) { this.log("Start initialization."); }, onEditorInitialized: function(xed) { this.log("Initialized."); }, onEditorElementChanged: function(xed, from, to) { this.log("Element changed from <" + (from ? from.nodeName : null) + "> to <" + (to ? to.nodeName : null) + ">."); }, onEditorBeforeEvent: function(xed, e) { this.log("Before event [" + e.type + "]"); }, onEditorAfterEvent: function(xed, e) { this.log("After event [" + e.type + "]"); }, onEditorCurrentContentChanged: function(xed) { this.log("Current content changed."); }, onEditorStaticContentChanged: function(xed, content) { this.log("Static content changed."); }, onEditorCurrentEditModeChanged: function(xed, from, to) { this.log("Edit mode changed from <" + from + "> to <" + to + ">."); }, createLogWindow: function() { var wrapper = document.createElement("DIV"); wrapper.innerHTML = "